


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

import diffusers.utils.hub_utils

class 	__a   (       unittest.TestCase    ):
		@patch('diffusers.utils.hub_utils.get_full_repo_name'		)
		def 			UpperCAmelCase__       (    self    ,					_SCREAMING_SNAKE_CASE		)				-> None:




									"""simple docstring"""





									_UpperCAmelCase					=    'full_repo_name'
									with TemporaryDirectory() as tmpdir:
																# Dummy args values
																_UpperCAmelCase					=    Mock()
																_UpperCAmelCase					=    tmpdir
																_UpperCAmelCase					=    0
																_UpperCAmelCase					=    'hub_token'
																_UpperCAmelCase					=    'dataset_name'
																_UpperCAmelCase					=    0.01
																_UpperCAmelCase					=    100000
																_UpperCAmelCase					=    10000
																_UpperCAmelCase					=    0.01
																_UpperCAmelCase					=    0.02
																_UpperCAmelCase					=    0.03
																_UpperCAmelCase					=    0.0005
																_UpperCAmelCase					=    0.000001
																_UpperCAmelCase					=    1
																_UpperCAmelCase					=    10
																_UpperCAmelCase					=    0.001
																_UpperCAmelCase					=    0.1
																_UpperCAmelCase					=    0.2
																_UpperCAmelCase					=    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()		)




from __future__ import annotations

def  lowerCAmelCase__				(    a__:	list[int]    ,						a__:	int )						->	list[int]:


							'''simple docstring'''





							_UpperCAmelCase					=    {}
							for index, val in enumerate(a__ ):
														_UpperCAmelCase					=    target - val
														if compl in chk_map:
																					return [chk_map[compl], index]
														_UpperCAmelCase					=    index
							return []


if __name__ == "__main__":
		import doctest

		doctest.testmod()
		print(f'''{two_sum([2, 7, 1_1, 1_5], 9) = }''')
