def METHOD_NAME(data: str, dataset_path: str) -> str:
    """
    Given a dataset name, fetch the yaml config for the dataset
    from the Ultralytics dataset repo, overwrite its 'path'
    attribute (dataset root dir) to point to the `dataset_path`
    and finally save it to the current working directory.
    This allows to create load data yaml config files that point
    to the arbitrary directories on the disk.
     :param data: name of the dataset (e.g. "coco.yaml")
     :param dataset_path: path to the dataset directory
     :return: a path to the new yaml config file
        (saved in the current working directory)
    """
    ultralytics_dataset_path = glob.glob(os.path.join(ROOT, "**", data), recursive=True)
    if len(ultralytics_dataset_path) != 1:
        raise ValueError(
            "Expected to find a single path to the "
            f"dataset yaml file: {data}, but found {ultralytics_dataset_path}"
        )
    ultralytics_dataset_path = ultralytics_dataset_path[0]
    with open(ultralytics_dataset_path, "r") as f:
        yaml_config = yaml.safe_load(f)
        yaml_config["path"] = dataset_path
        yaml_save_path = os.path.join(os.getcwd(), data)
        # save the new dataset yaml file
        with open(yaml_save_path, "w") as outfile:
            yaml.dump(yaml_config, outfile, default_flow_style=False)
        return yaml_save_path