let say some function from a collaborator will get me an object, a property from a class. i do not have access to this function, all I have is the given object.
def get_color():
"""this function will get you a color property from a nested class"""
...
return color
How could i retrieve the dotted path of the object like this below
>>> color = get_color()
>>> API = find_string_api(color)
>>> print(API)
"parent_dylan.children[56].color"