def METHOD_NAME(raise_error=None):
    """Function used to test the intercept error decorator.
    Keyword Arguments:
        raise_error (Exception): If provided, raise this exception.
    """
    if raise_error is not None:
        raise raise_error                   # pylint: disable=raising-bad-type