



from urllib.parse import quote

import pytest

from datasets.utils.hub import hf_hub_url






@pytest.mark.parametrize("repo_id"       ,				["canonical_dataset_name", "org-name/dataset-name"]						)
@pytest.mark.parametrize("path"       ,				["filename.csv", "filename with blanks.csv"]						)
@pytest.mark.parametrize("revision"       ,				[None, "v2"]						)
def        A       (      _lowerCamelCase       ,				_lowerCamelCase       ,				_lowerCamelCase						):





							'''simple docstring'''




							_lowerCAmelCase  :							int				     =					hf_hub_url(repo_id=_lowerCamelCase       ,				path=_lowerCamelCase       ,				revision=_lowerCamelCase						)
							assert url == F"https://huggingface.co/datasets/{repo_id}/resolve/{revision or 'main'}/{quote(_lowerCamelCase						)}"





from __future__ import annotations






def        A       (      _lowerCamelCase						):





							'''simple docstring'''




							if not nums:
														raise ValueError("List is empty"						)
							return sum(_lowerCamelCase						) / len(_lowerCamelCase						)


if __name__ == "__main__":
						import doctest

						doctest.testmod()
