def METHOD_NAME(ext: Mapping):
    """Wraps a ext function with arguments given in the test file
    This is similar to functools.wrap, but this makes sure that 'response' is
    always the first argument passed to the function
    Args:
        ext: $ext function dict with function, extra_args, and
            extra_kwargs to pass
    Returns:
        function: Wrapped function
    """
    func, args, kwargs = _get_ext_values(ext)
    @functools.wraps(func)
    def inner(response):
        result = func(response, *args, **kwargs)
        _getlogger().debug("Result of calling '%s': '%s'", func, result)
        return result
    inner.func = func  # type: ignore
    return inner