def METHOD_NAME(self, function, wrapper):
    # type: (FunctionType, Wrapper) -> None
    """Wrap a function with a hook."""
    self._store(function)
    self._wrapper_map[function] = wrapper
    METHOD_NAME(function, wrapper)