




'''simple docstring'''



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

import diffusers.utils.hub_utils





class     lowerCAmelCase   ( unittest.TestCase):


       @patch('''diffusers.utils.hub_utils.get_full_repo_name'''  )
       def       lowerCAmelCase      (   self    ,  __SCREAMING_SNAKE_CASE  )      ->  None:



            '''simple docstring'''




            __snake_case    					=  '''full_repo_name'''
            with TemporaryDirectory() as tmpdir:
                 # Dummy args values
                 __snake_case    					=  Mock()
                 __snake_case    					=  tmpdir
                 __snake_case    					=  0
                 __snake_case    					=  '''hub_token'''
                 __snake_case    					=  '''dataset_name'''
                 __snake_case    					=  0.01
                 __snake_case    					=  10_0000
                 __snake_case    					=  1_0000
                 __snake_case    					=  0.01
                 __snake_case    					=  0.02
                 __snake_case    					=  0.03
                 __snake_case    					=  0.0_005
                 __snake_case    					=  0.000_001
                 __snake_case    					=  1
                 __snake_case    					=  10
                 __snake_case    					=  0.001
                 __snake_case    					=  0.1
                 __snake_case    					=  0.2
                 __snake_case    					=  True

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












'''simple docstring'''



import warnings

from ...utils import logging
from .image_processing_maskformer import MaskFormerImageProcessor


UpperCAmelCase_       :  int      =		logging.get_logger(__name__)





class     lowerCAmelCase   ( __lowerCAmelCase):


       def __init__(   self    ,  *__SCREAMING_SNAKE_CASE    ,  **__SCREAMING_SNAKE_CASE  )      ->  None:



            '''simple docstring'''




            warnings.warn(
                '''The class MaskFormerFeatureExtractor is deprecated and will be removed in version 5 of Transformers.'''
                ''' Please use MaskFormerImageProcessor instead.'''    ,  __SCREAMING_SNAKE_CASE    ,  )
            super().__init__(*__SCREAMING_SNAKE_CASE    ,  **__SCREAMING_SNAKE_CASE  )






