human
I wrote the below code

    ignore = {id(sys._getframe()): None}
    gc.collect()
    refs = gc.get_referrers(obj)
    ignore[id(refs)] = None
    refs = [r for r in refs if (id(r) not in ignore)]
    for a in args:
        if (type(a) is int):
            obj = refs[a]
            gc.collect()
            refs = gc.get_referrers(obj)
            ignore[id(refs)] = None
            refs = [r for r in refs if (id(r) not in ignore)]
        elif (a == 't'):
            print(list(map(typeStr, refs)))
        elif (a == 'i'):
            print(list(map(id, refs)))
        elif (a == 'l'):
            def slen(o):
                if hasattr(o, '__len__'):
                    return len(o)
                else:
                    return None
            print(list(map(slen, refs)))
        elif (a == 'o'):
            print(obj)
        elif (a == 'ro'):
            return obj
        elif (a == 'rr'):
            return refs

What's a good function header?
assistant
#Here's a good function header.

def searchRefs(obj, *args):