

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

import diffusers.utils.hub_utils
class  _snake_case						(unittest.TestCase):






			@patch("diffusers.utils.hub_utils.get_full_repo_name"			)
			def 						UpperCamelCase__				(   self       ,_snake_case			):
				UpperCAmelCase_			:	List[Any]      =   "full_repo_name"
				with TemporaryDirectory() as tmpdir:
					# Dummy args values
					UpperCAmelCase_			:	Tuple      =   Mock()
					UpperCAmelCase_			:	Optional[Any]      =   tmpdir
					UpperCAmelCase_			:	List[str]      =   0
					UpperCAmelCase_			:	Any      =   "hub_token"
					UpperCAmelCase_			:	str      =   "dataset_name"
					UpperCAmelCase_			:	List[Any]      =   0.01
					UpperCAmelCase_			:	Any      =   10_00_00
					UpperCAmelCase_			:	str      =   1_00_00
					UpperCAmelCase_			:	List[str]      =   0.01
					UpperCAmelCase_			:	int      =   0.02
					UpperCAmelCase_			:	Optional[Any]      =   0.03
					UpperCAmelCase_			:	List[Any]      =   0.0005
					UpperCAmelCase_			:	int      =   0.000001
					UpperCAmelCase_			:	List[Any]      =   1
					UpperCAmelCase_			:	str      =   10
					UpperCAmelCase_			:	Optional[Any]      =   0.001
					UpperCAmelCase_			:	Dict      =   0.1
					UpperCAmelCase_			:	Any      =   0.2
					UpperCAmelCase_			:	str      =   True

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







'''simple docstring'''
from transformers import PretrainedConfig
class  _snake_case						(__SCREAMING_SNAKE_CASE):
			__A   :     Optional[Any]          ="custom"






			def __init__(   self       ,_snake_case=1       ,**_snake_case			):
				UpperCAmelCase_			:	Optional[int]      =   attribute
				super().__init__(**_snake_case			)




class  _snake_case						(__SCREAMING_SNAKE_CASE):
			__A   :     Dict          ="custom"






			def __init__(   self       ,_snake_case=1       ,**_snake_case			):
				UpperCAmelCase_			:	Optional[int]      =   attribute




