def METHOD_NAME(f):
    """
    A decorator that checks whether the `--rest-api-irl` parameter is specified
    before calling the wrapped function and, if not, throws an exception.
    """
    @functools.wraps(f)
    def check(*args, **kwargs):
        log.debug(f"Passed parameters to function {f}: {args}, {kwargs}")
        rest_api_url = kwargs.get("rest_api_url", "")
        check_rest_api_url(rest_api_url)
        return f(*args, **kwargs)
    return check