


'''simple docstring'''







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 			lowercase				(_A   ,						_A   ,						_A					):







   """simple docstring"""







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





'''simple docstring'''







from typing import Any






def 			lowercase				(_A					):







       """simple docstring"""







       if not input_list:
              return []
       _lowerCAmelCase    :							Optional[int]   			=       [input_list.count(_A					) for value in input_list]
       _lowerCAmelCase    :							int   			=       max(_A					)  # Gets the maximum count in the input list.
       # Gets values of modes
       return sorted({input_list[i] for i, value in enumerate(_A					) if value == y}					)


if __name__ == "__main__":
       import doctest

       doctest.testmod()

