





import unittest
from pathlib import Path
from tempfile import TemporaryDirectory
from unittest.mock import Mock, patch

import diffusers.utils.hub_utils

class   __snake_case				(			unittest.TestCase   ):






    '''simple docstring'''





    @patch('''diffusers.utils.hub_utils.get_full_repo_name'''							)
    def 	A		(   self						:		Dict			,						snake_case						:		Mock							):

      """simple docstring"""





      __lowerCAmelCase			=				'''full_repo_name'''
      with TemporaryDirectory() as tmpdir:
        # Dummy args values
        __lowerCAmelCase			=				Mock()
        __lowerCAmelCase			=				tmpdir
        __lowerCAmelCase			=				0
        __lowerCAmelCase			=				'''hub_token'''
        __lowerCAmelCase			=				'''dataset_name'''
        __lowerCAmelCase			=				0.01
        __lowerCAmelCase			=				100_000
        __lowerCAmelCase			=				10_000
        __lowerCAmelCase			=				0.01
        __lowerCAmelCase			=				0.02
        __lowerCAmelCase			=				0.03
        __lowerCAmelCase			=				0.0005
        __lowerCAmelCase			=				0.00_0001
        __lowerCAmelCase			=				1
        __lowerCAmelCase			=				10
        __lowerCAmelCase			=				0.001
        __lowerCAmelCase			=				0.1
        __lowerCAmelCase			=				0.2
        __lowerCAmelCase			=				True

        # Model card mush be rendered and saved
        diffusers.utils.hub_utils.create_model_card(snake_case			,						model_name='''model_name'''							)
        self.assertTrue((Path(snake_case							) / '''README.md''').is_file()							)







def 					__SCREAMING_SNAKE_CASE  (							__lowercase:		list):



  '''simple docstring'''






  if len(__lowercase) <= 1:
    return data
  else:
    return [
        *quick_sort([e for e in data[1:] if e <= data[0]]),
        data[0],
        *quick_sort([e for e in data[1:] if e > data[0]]),
    ]


if __name__ == "__main__":
      import doctest

      doctest.testmod()
