def METHOD_NAME(f, hook, line, arg):
    # type: (FunctionType, HookType, int, Any) -> FunctionType
    """Eject a hook from a function.
    The hook is identified by its line number and the argument passed to the
    hook.
    """
    abstract_code = Bytecode.from_code(f.__code__)
    _eject_hook(abstract_code, hook, line, arg)
    return _function_with_new_code(f, abstract_code)