def _get_class(obj):
    try:
        return obj.__class__
    except __HOLE__:
        # it is possible for objects to have no __class__
        return type(obj)
dataset/ETHPy150Open testing-cabal/mock/mock/mock.py/_get_class