def METHOD_NAME(self, obj):
    # TODO: we may need to have a reverse index eventually
    res = list(zip(*self.tags.items()))
    if len(res) == 0:
        return None
    tags, objs = res
    try:
        idx = objs.index(obj)
        return tags[idx]
    except ValueError:
        return None