def _im_func(f):
    # "im_func" is the old Python 2 name for __func__
    if hasattr(f, '__func__'):
        return f.__func__
    else:
        return f
Wrapper to get at the underlying function belonging to a method.
dataset/ETHPy150Open Yelp/mrjob/mrjob/job.py/_im_func