def METHOD_NAME(self, function, hook, line, arg):
    # type: (FullyNamedWrappedFunction, HookType, int, Any) -> bool
    """Inject a hook into a function."""
    return not not self.inject_hooks(function, [(hook, line, arg)])