def get_class(func):
    try:
        return func.im_class
    except __HOLE__:
        #Python 3
        return func.__self__.__class__
dataset/ETHPy150Open statsmodels/statsmodels/statsmodels/compat/python.py/get_class