def METHOD_NAME(
    hf_api: HfApi,
    hf_token: str,
    prefix: str,
    *,
    private: bool = False,
    gated: Optional[str] = None,
    user: str = CI_HUB_USER,
) -> str:
    repo_id = create_unique_repo_name(prefix, user)
    hf_api.create_repo(repo_id=repo_id, token=hf_token, repo_type="dataset", private=private)
    if gated:
        update_repo_settings(hf_api, repo_id, token=hf_token, gated=gated, repo_type="dataset")
    return repo_id