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 					lowerCAmelCase_					(    self	:    Dict				,			__A	:    Mock       ):
  		__A   : Optional[Any]								= """full_repo_name"""
  		with TemporaryDirectory() as tmpdir:
  			# Dummy args values
  			__A   : Union[str, Any]								= Mock()
  			__A   : Union[str, Any]								= tmpdir
  			__A   : str								= 0
  			__A   : Optional[Any]								= """hub_token"""
  			__A   : Any								= """dataset_name"""
  			__A   : Dict								= 0.0_1
  			__A   : Optional[int]								= 10_0000
  			__A   : Optional[Any]								= 1_0000
  			__A   : Union[str, Any]								= 0.0_1
  			__A   : List[str]								= 0.0_2
  			__A   : Any								= 0.0_3
  			__A   : str								= 0.0_0_0_5
  			__A   : Any								= 0.0_0_0_0_0_1
  			__A   : Tuple								= 1
  			__A   : str								= 10
  			__A   : Optional[int]								= 0.0_0_1
  			__A   : int								= 0.1
  			__A   : Tuple								= 0.2
  			__A   : List[Any]								= True
  
  			# Model card mush be rendered and saved
  			diffusers.utils.hub_utils.create_model_card(__A				,			model_name="""model_name"""       )
  			self.assertTrue((Path(__A       ) / """README.md""").is_file()       )
  
  
  
  
  
  
style_context: 
  
  from ...configuration_utils import PretrainedConfig
  from ...utils import logging
  
  
  UpperCAmelCase_       :				Optional[Any]		   =      logging.get_logger(__name__)
  
  UpperCAmelCase_       :				List[str]		   =      {
      '''uw-madison/nystromformer-512''': '''https://huggingface.co/uw-madison/nystromformer-512/resolve/main/config.json''',
      # See all Nystromformer models at https://huggingface.co/models?filter=nystromformer
  }
  
  
  
  
  
  
  class     lowerCamelCase_			(  _lowercase  ):
  	_lowercase		:      Optional[Any]    				=							'''nystromformer'''
  
  
  
  
  	def __init__(    self	:    Optional[Any]				,			__A	:    Optional[Any]=3_0000				,			__A	:    Optional[int]=768				,			__A	:    List[str]=12				,			__A	:    str=12				,			__A	:    Tuple=3072				,			__A	:    List[Any]="gelu_new"				,			__A	:    Dict=0.1				,			__A	:    Optional[int]=0.1				,			__A	:    int=510				,			__A	:    Union[str, Any]=2				,			__A	:    Optional[int]=64				,			__A	:    str=64				,			__A	:    List[str]=65				,			__A	:    Tuple=False				,			__A	:    List[str]=0.0_2				,			__A	:    Tuple=1e-5				,			__A	:    List[str]=1				,			__A	:    int=0				,			__A	:    Tuple=2				,			**__A	:    Dict				,			):
  		__A   : str								= vocab_size
  		__A   : Union[str, Any]								= max_position_embeddings
  		__A   : Optional[int]								= hidden_size
  		__A   : Optional[int]								= num_hidden_layers
  		__A   : List[Any]								= num_attention_heads
  		__A   : Dict								= intermediate_size
  		__A   : Union[str, Any]								= hidden_act
  		__A   : int								= hidden_dropout_prob
  		__A   : Tuple								= attention_probs_dropout_prob
  		__A   : Optional[Any]								= initializer_range
  		__A   : int								= type_vocab_size
  		__A   : Optional[int]								= segment_means_seq_len
  		__A   : List[str]								= num_landmarks
  		__A   : Dict								= conv_kernel_size
  		__A   : Union[str, Any]								= inv_coeff_init_option
  		__A   : Union[str, Any]								= layer_norm_eps
  		super().__init__(pad_token_id=__A				,			bos_token_id=__A				,			eos_token_id=__A				,			**__A       )
  
  
  
  
  
  