





"""simple docstring"""




import unittest

from transformers import BlenderbotTokenizer, BlenderbotTokenizerFast
from transformers.utils import cached_property




class 				_a		(   unittest.TestCase       ):






				@cached_property
				def        snake_case			(				self	:					Tuple							)			->   List[str]:




										'''simple docstring'''



										return BlenderbotTokenizer.from_pretrained('''facebook/blenderbot-3B'''							)






				@cached_property
				def        snake_case			(				self	:					Dict							)			->   Optional[Any]:




										'''simple docstring'''



										return BlenderbotTokenizerFast.from_pretrained('''facebook/blenderbot-3B'''							)






				def        snake_case			(				self	:					Optional[int]							)			->   Optional[int]:




										'''simple docstring'''



										_UpperCamelCase    :      Union[str, Any]						     =					self.tokenizer_ab
										_UpperCamelCase    :      Optional[int]						     =					''' I am a small frog.'''
										_UpperCamelCase    :      Tuple						     =					tok([src_text],				padding=lowerCAmelCase__,				truncation=lowerCAmelCase__							)['''input_ids''']
										_UpperCamelCase    :      List[str]						     =					tok.batch_decode(lowerCAmelCase__,				skip_special_tokens=lowerCAmelCase__,				clean_up_tokenization_spaces=lowerCAmelCase__							)[0]
										assert src_text == decoded






				def        snake_case			(				self	:					Union[str, Any]							)			->   str:




										'''simple docstring'''



										_UpperCamelCase    :      List[str]						     =					self.rust_tokenizer_ab
										_UpperCamelCase    :      Any						     =					''' I am a small frog.'''
										_UpperCamelCase    :      int						     =					tok([src_text],				padding=lowerCAmelCase__,				truncation=lowerCAmelCase__							)['''input_ids''']
										_UpperCamelCase    :      int						     =					tok.batch_decode(lowerCAmelCase__,				skip_special_tokens=lowerCAmelCase__,				clean_up_tokenization_spaces=lowerCAmelCase__							)[0]
										assert src_text == decoded






				def        snake_case			(				self	:					int							)			->   Optional[Any]:




										'''simple docstring'''



										assert self.tokenizer_ab.add_prefix_space
										assert self.tokenizer_ab([''' Sam''', '''Sam''']							).input_ids == [[5_5_0_2, 2], [5_5_0_2, 2]]






				def        snake_case			(				self	:					int							)			->   Union[str, Any]:




										'''simple docstring'''



										assert self.rust_tokenizer_ab.add_prefix_space
										assert self.rust_tokenizer_ab([''' Sam''', '''Sam''']							).input_ids == [[5_5_0_2, 2], [5_5_0_2, 2]]










"""simple docstring"""




def  a_       (							_lowercase     ):
						return 1 if input_a == 0 else 0





def  a_       (							):
						assert not_gate(0     ) == 1
						assert not_gate(1     ) == 0


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



