def find_name(parent, obj):
    """Find the given object in the specified parent and return its name
    in the parent's `__dict__`.  There could be multiple names bound to a
    given object. Only the first name found is returned.

    Return '' if not found.
    """
    for name, val in parent.__dict__.items():
        if val is obj:
            return name
    return ''