




'''simple docstring'''



import warnings

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


lowerCamelCase_	 =		logging.get_logger(__name__)







class 	lowercase_					(				A     ):


   """simple docstring"""

   def __init__(					self      :			Dict						,   *__lowerCamelCase      :			Dict						,   **__lowerCamelCase      :			int					):

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







'''simple docstring'''



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

import diffusers.utils.hub_utils







class 	lowercase_					(				unittest.TestCase     ):


   """simple docstring"""

   @patch("diffusers.utils.hub_utils.get_full_repo_name"					)
   def 							lowerCAmelCase_    (					self      :			List[Any]						,   __lowerCamelCase      :			Mock					):

      """simple docstring"""
      _SCREAMING_SNAKE_CASE =   "full_repo_name"
      with TemporaryDirectory() as tmpdir:
         # Dummy args values
         _SCREAMING_SNAKE_CASE =   Mock()
         _SCREAMING_SNAKE_CASE =   tmpdir
         _SCREAMING_SNAKE_CASE =   0
         _SCREAMING_SNAKE_CASE =   "hub_token"
         _SCREAMING_SNAKE_CASE =   "dataset_name"
         _SCREAMING_SNAKE_CASE =   0.0_1
         _SCREAMING_SNAKE_CASE =   1_0_0_0_0_0
         _SCREAMING_SNAKE_CASE =   1_0_0_0_0
         _SCREAMING_SNAKE_CASE =   0.0_1
         _SCREAMING_SNAKE_CASE =   0.0_2
         _SCREAMING_SNAKE_CASE =   0.0_3
         _SCREAMING_SNAKE_CASE =   0.0_0_0_5
         _SCREAMING_SNAKE_CASE =   0.0_0_0_0_0_1
         _SCREAMING_SNAKE_CASE =   1
         _SCREAMING_SNAKE_CASE =   1_0
         _SCREAMING_SNAKE_CASE =   0.0_0_1
         _SCREAMING_SNAKE_CASE =   0.1
         _SCREAMING_SNAKE_CASE =   0.2
         _SCREAMING_SNAKE_CASE =   True

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

