def pull_dataset_repo(params):
    """
    Downloads a dataset repository from Hugging Face Hub.

    Args:
        params (object): An object containing the following attributes:
            - data_path (str): The repository ID of the dataset.
            - project_name (str): The local directory where the dataset will be downloaded.
            - token (str): The authentication token for accessing the repository.

    Returns:
        None
    """
    snapshot_download(
        repo_id=params.data_path,
        local_dir=params.project_name,
        token=params.token,
        repo_type="dataset",
    )

    Downloads a dataset repository from Hugging Face Hub.

    Args:
        params (object): An object containing the following attributes:
            - data_path (str): The repository ID of the dataset.
            - project_name (str): The local directory where the dataset will be downloaded.
            - token (str): The authentication token for accessing the repository.

    Returns:
        None
    
src/autotrain/trainers/generic/utils.py