'''simple docstring'''

import pytest

from datasets import inspect_metric, list_metrics, load_metric
@pytest.fixture
def       __UpperCamelCase	(       UpperCAmelCase					):
 monkeypatch.setattr('''datasets.utils.deprecation_utils._emitted_deprecation_warnings'''		,					set()					)
@pytest.fixture
def       __UpperCamelCase	(       UpperCAmelCase					):



 class       UpperCAmelCase  :





        '''simple docstring'''



        def __init__(						self     ,       __lowerCAmelCase			)  ->  List[Any]:
         lowercase__    :   Tuple						= metric_id






 class       UpperCAmelCase  :





        '''simple docstring'''



        SCREAMING_SNAKE_CASE 		=   [MetricMock(a__ ) for metric_id in ["accuracy", "mse", "precision", "codeparrot/apps_metric"]]

        def _lowerCAmelCase(						self			)  ->  int:
         return self._metrics






 monkeypatch.setattr('''datasets.inspect.huggingface_hub'''		,					HfhMock()					)





@pytest.mark.parametrize(
    '''func, args'''		,					[(load_metric, ('''metrics/mse''',)), (list_metrics, ()), (inspect_metric, ('''metrics/mse''', '''tmp_path'''))]					)
def       __UpperCamelCase	(       UpperCAmelCase		,					UpperCAmelCase		,					UpperCAmelCase		,					UpperCAmelCase		,					UpperCAmelCase					):







 if "tmp_path" in args:
  lowercase__    :   List[str]						= tuple(arg if arg != '''tmp_path''' else tmp_path for arg in args					)
 with pytest.warns(_lowercase		,					match='''https://huggingface.co/docs/evaluate'''					):
  func(*_lowercase					)


'''simple docstring'''

def       __UpperCamelCase	(       UpperCAmelCase					):

 def merge(UpperCAmelCase		,					UpperCAmelCase					) -> list:

  def _merge():
   while left and right:
    yield (left if left[0] <= right[0] else right).pop(0					)
   yield from left
   yield from right

  return list(_merge()					)

 if len(UpperCAmelCase					) <= 1:
  return collection
 lowercase__    :   int						= len(UpperCAmelCase					) // 2
 return merge(merge_sort(collection[:mid]					)		,					merge_sort(collection[mid:]					)					)


if __name__ == "__main__":
  import doctest

  doctest.testmod()
  __a:			str	       =       input("""Enter numbers separated by a comma:\n""").strip()
  __a:			Optional[int]	       =       [int(item) for item in user_input.split(""",""")]
  print(*merge_sort(unsorted), sep=""",""")

