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

import diffusers.utils.hub_utils






class 							_SCREAMING_SNAKE_CASE(   unittest.TestCase	):
   @patch('''diffusers.utils.hub_utils.get_full_repo_name'''    )
   def _lowercase(    self							,     lowerCAmelCase_    )	->None:
        a  :    Any				=						'''full_repo_name'''
        with TemporaryDirectory() as tmpdir:
             # Dummy args values
             a  :    Tuple				=						Mock()
             a  :    Optional[int]				=						tmpdir
             a  :    Dict				=						0
             a  :    int				=						'''hub_token'''
             a  :    Optional[int]				=						'''dataset_name'''
             a  :    Any				=						0.01
             a  :    List[str]				=						10_00_00
             a  :    List[str]				=						1_00_00
             a  :    int				=						0.01
             a  :    List[str]				=						0.02
             a  :    int				=						0.03
             a  :    List[str]				=						0.00_05
             a  :    List[str]				=						0.00_00_01
             a  :    Optional[int]				=						1
             a  :    Optional[Any]				=						10
             a  :    str				=						0.0_01
             a  :    str				=						0.1
             a  :    int				=						0.2
             a  :    Union[str, Any]				=						True

             # Model card mush be rendered and saved
             diffusers.utils.hub_utils.create_model_card(lowerCAmelCase_							,     model_name='''model_name'''    )
             self.assertTrue((Path(lowerCAmelCase_    ) / '''README.md''').is_file()    )
def 	UpperCAmelCase       (		lowerCAmelCase_       )	->	int:
     return 1 if input_a == 0 else 0







def 	UpperCAmelCase       (		)	->	None:
     assert not_gate(0       ) == 1
     assert not_gate(1       ) == 0


if __name__ == "__main__":
  print(not_gate(0))
  print(not_gate(1))