def METHOD_NAME(giskard_model, giskard_dataset, evaluator_config):
    scan_config = evaluator_config.get("scan_config", None)
    if scan_config is None:
        return scan(model=giskard_model, dataset=giskard_dataset)
    config_set = set(scan_config.keys())
    sign = inspect.signature(scan)
    sign_set = set(sign.parameters.keys())
    if config_set.issubset(sign_set):
        return scan(model=giskard_model, dataset=giskard_dataset, **scan_config)
    raise ValueError(
        f"The provided parameters {config_set - sign_set} in scan_config are not valid. "
        "Make sure to pass only the attributes of giskard.scan."
    )