code: 
  
  
  
  
  
  '''simple docstring'''
  
  import unittest
  from pathlib import Path
  from tempfile import TemporaryDirectory
  from unittest.mock import Mock, patch
  
  import diffusers.utils.hub_utils
  
  
  
  
  
  
  class      UpperCAmelCase			( unittest.TestCase       ):
   @patch("diffusers.utils.hub_utils.get_full_repo_name"							)
   def   UpperCAmelCase_							(       self   :Tuple		, lowercase_   :Mock							)->							None:
       A__       =    "full_repo_name"
       with TemporaryDirectory() as tmpdir:
           # Dummy args values
           A__       =    Mock()
           A__       =    tmpdir
           A__       =    0
           A__       =    "hub_token"
           A__       =    "dataset_name"
           A__       =    0.0_1
           A__       =    10_00_00
           A__       =    1_00_00
           A__       =    0.0_1
           A__       =    0.0_2
           A__       =    0.0_3
           A__       =    0.0_0_0_5
           A__       =    0.0_0_0_0_0_1
           A__       =    1
           A__       =    10
           A__       =    0.0_0_1
           A__       =    0.1
           A__       =    0.2
           A__       =    True
  
           # Model card mush be rendered and saved
           diffusers.utils.hub_utils.create_model_card(lowercase_		, model_name="model_name"							)
           self.assertTrue((Path(lowercase_							) / "README.md").is_file()							)
  
  
  
  
style_context: 
  
  
  
  
  
  '''simple docstring'''
  
  import warnings
  
  from ...utils import logging
  from .image_processing_vilt import ViltImageProcessor
  
  
  __lowerCAmelCase							:			Dict				=logging.get_logger(__name__)
  
  
  
  
  
  
  class      UpperCAmelCase			( UpperCamelCase__       ):
   def __init__(       self   :List[str]		, *lowercase_   :Dict		, **lowercase_   :int							)->							None:
       warnings.warn(
           "The class ViltFeatureExtractor is deprecated and will be removed in version 5 of Transformers. Please"
           " use ViltImageProcessor instead."		, lowercase_		, )
       super().__init__(*lowercase_		, **lowercase_							)
  
  
  
  