code: 
  
  
  
  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       snake_case_ (    self,    SCREAMING_SNAKE_CASE_ )  ->	None:
            UpperCamelCase					:						Dict					=			'full_repo_name'
            with TemporaryDirectory() as tmpdir:
               # Dummy args values
               UpperCamelCase					:						Any					=			Mock()
               UpperCamelCase					:						Any					=			tmpdir
               UpperCamelCase					:						Optional[Any]					=			0
               UpperCamelCase					:						Dict					=			'hub_token'
               UpperCamelCase					:						List[Any]					=			'dataset_name'
               UpperCamelCase					:						int					=			0.01
               UpperCamelCase					:						int					=			10_0000
               UpperCamelCase					:						Dict					=			1_0000
               UpperCamelCase					:						List[str]					=			0.01
               UpperCamelCase					:						Tuple					=			0.02
               UpperCamelCase					:						Tuple					=			0.03
               UpperCamelCase					:						Optional[int]					=			0.00_05
               UpperCamelCase					:						str					=			0.00_00_01
               UpperCamelCase					:						List[Any]					=			1
               UpperCamelCase					:						Tuple					=			10
               UpperCamelCase					:						List[str]					=			0.0_01
               UpperCamelCase					:						Optional[Any]					=			0.1
               UpperCamelCase					:						Dict					=			0.2
               UpperCamelCase					:						Optional[Any]					=			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() )
  
  
  
  
style_context: 
  
  
  
  from ...configuration_utils import PretrainedConfig
  from ...utils import logging
  
  
  __UpperCAmelCase      = logging.get_logger(__name__)
  
  __UpperCAmelCase      = {
      '''microsoft/mpnet-base''': '''https://huggingface.co/microsoft/mpnet-base/resolve/main/config.json''',
  }
  
  
  
  class        lowerCAmelCase_	(						a__							):
         UpperCAmelCase__       :      Union[str, Any]       =						"mpnet"
         def __init__(    self,    SCREAMING_SNAKE_CASE_=3_0527,    SCREAMING_SNAKE_CASE_=768,    SCREAMING_SNAKE_CASE_=12,    SCREAMING_SNAKE_CASE_=12,    SCREAMING_SNAKE_CASE_=3072,    SCREAMING_SNAKE_CASE_="gelu",    SCREAMING_SNAKE_CASE_=0.1,    SCREAMING_SNAKE_CASE_=0.1,    SCREAMING_SNAKE_CASE_=512,    SCREAMING_SNAKE_CASE_=0.02,    SCREAMING_SNAKE_CASE_=1e-12,    SCREAMING_SNAKE_CASE_=32,    SCREAMING_SNAKE_CASE_=1,    SCREAMING_SNAKE_CASE_=0,    SCREAMING_SNAKE_CASE_=2,    **SCREAMING_SNAKE_CASE_,    )  ->	Optional[int]:
            super().__init__(pad_token_id=SCREAMING_SNAKE_CASE_,    bos_token_id=SCREAMING_SNAKE_CASE_,    eos_token_id=SCREAMING_SNAKE_CASE_,    **SCREAMING_SNAKE_CASE_ )
  
            UpperCamelCase					:						Any					=			vocab_size
            UpperCamelCase					:						Optional[Any]					=			hidden_size
            UpperCamelCase					:						Union[str, Any]					=			num_hidden_layers
            UpperCamelCase					:						Optional[int]					=			num_attention_heads
            UpperCamelCase					:						Optional[Any]					=			hidden_act
            UpperCamelCase					:						str					=			intermediate_size
            UpperCamelCase					:						Optional[Any]					=			hidden_dropout_prob
            UpperCamelCase					:						Union[str, Any]					=			attention_probs_dropout_prob
            UpperCamelCase					:						List[Any]					=			max_position_embeddings
            UpperCamelCase					:						Union[str, Any]					=			initializer_range
            UpperCamelCase					:						List[str]					=			layer_norm_eps
            UpperCamelCase					:						str					=			relative_attention_num_buckets
  
  
  
  