def METHOD_NAME(args, kwargs):
    req = args[0]
    if not isinstance(req, str):
        return (args, kwargs)
    new_kwargs = {}
    for param in ("callback", "raise_error"):
        if param in kwargs:
            new_kwargs[param] = kwargs.pop(param)
    req = HTTPRequest(req, **kwargs)
    new_args = [req]
    new_args.extend(args[1:])
    return (new_args, new_kwargs)