def _is_member_of(cls, obj):
    if obj in cls.__dict__.values():
        return True

    # check the base classes
    if cls.__bases__:
        for base in cls.__bases__:
            if _is_member_of(base, obj):
                return True

    return False
Constructor.
dataset/ETHPy150Open manahl/mdf/mdf/nodes.py/_is_member_of--crossover with--dataset/ETHPy150Open Robpol86/colorclass/tests/screenshot.py/RunNewConsole.__init__