def METHOD_NAME(regression_function):
    """
    Tests the get_loss_func function for regression.
    """
    args = SimpleNamespace(
        loss_function=regression_function,
        dataset_type="regression",
    )
    assert get_loss_func(args)