def get_function_name(func):
    try:
        return func.im_func.func_name
    except __HOLE__:
        #Python 3
        return func.__name__
dataset/ETHPy150Open statsmodels/statsmodels/statsmodels/compat/python.py/get_function_name