def method_self(method):
    """Return the instance a bound method is attached to."""
    try:
        # Python 2
        return method.im_self
    except __HOLE__:
        # Python 3
        return method.__self__
dataset/ETHPy150Open SimonSapin/Frozen-Flask/flask_frozen/__init__.py/method_self