def METHOD_NAME(dataset: str, rules: List[Rule]):
    """Adds the rules to a given dataset
    Args:
        dataset: Name of the dataset.
        rules: Rules to add to the dataset
    Returns:
    """
    rules = [rule._convert_to_labeling_rule() for rule in rules]
    return api.active_api().add_dataset_labeling_rules(dataset, rules)