






"""simple docstring"""





import os
import sys
import unittest


__lowerCamelCase							=  os.path.abspath(os.path.dirname(os.path.dirname(os.path.dirname(__file__))))
sys.path.append(os.path.join(git_repo_path, 'utils'))

import get_test_info  # noqa: E402
from get_test_info import (  # noqa: E402
    get_model_to_test_mapping,
    get_model_to_tester_mapping,
    get_test_to_tester_mapping,
)


__lowerCamelCase							=  os.path.join('tests', 'models', 'bert', 'test_modeling_bert.py')
__lowerCamelCase							=  os.path.join('tests', 'models', 'blip', 'test_modeling_blip.py')



class       __A		(   unittest.TestCase			):

					def   lowerCamelCase__   (			self  :      int					)			->							Optional[Any]:
											__magic_name__:	str							=       get_test_to_tester_mapping(__snake_case					)
											__magic_name__:	Optional[int]							=       get_test_to_tester_mapping(__snake_case					)

											__magic_name__:	List[str]							=       {"""BertModelTest""": """BertModelTester"""}

											__magic_name__:	Any							=       {
											    """BlipModelTest""": """BlipModelTester""",
											    """BlipTextImageModelTest""": """BlipTextImageModelsModelTester""",
											    """BlipTextModelTest""": """BlipTextModelTester""",
											    """BlipTextRetrievalModelTest""": """BlipTextRetrievalModelTester""",
											    """BlipVQAModelTest""": """BlipVQAModelTester""",
											    """BlipVisionModelTest""": """BlipVisionModelTester""",
											}

											self.assertEqual(get_test_info.to_json(__snake_case					)     ,		__snake_case					)
											self.assertEqual(get_test_info.to_json(__snake_case					)     ,		__snake_case					)

					def   lowerCamelCase__   (			self  :      int					)			->							Tuple:
											__magic_name__:	List[Any]							=       get_model_to_test_mapping(__snake_case					)
											__magic_name__:	List[Any]							=       get_model_to_test_mapping(__snake_case					)

											__magic_name__:	Optional[int]							=       {
											    """BertForMaskedLM""": ["""BertModelTest"""],
											    """BertForMultipleChoice""": ["""BertModelTest"""],
											    """BertForNextSentencePrediction""": ["""BertModelTest"""],
											    """BertForPreTraining""": ["""BertModelTest"""],
											    """BertForQuestionAnswering""": ["""BertModelTest"""],
											    """BertForSequenceClassification""": ["""BertModelTest"""],
											    """BertForTokenClassification""": ["""BertModelTest"""],
											    """BertLMHeadModel""": ["""BertModelTest"""],
											    """BertModel""": ["""BertModelTest"""],
											}

											__magic_name__:	Optional[int]							=       {
											    """BlipForConditionalGeneration""": ["""BlipTextImageModelTest"""],
											    """BlipForImageTextRetrieval""": ["""BlipTextRetrievalModelTest"""],
											    """BlipForQuestionAnswering""": ["""BlipVQAModelTest"""],
											    """BlipModel""": ["""BlipModelTest"""],
											    """BlipTextModel""": ["""BlipTextModelTest"""],
											    """BlipVisionModel""": ["""BlipVisionModelTest"""],
											}

											self.assertEqual(get_test_info.to_json(__snake_case					)     ,		__snake_case					)
											self.assertEqual(get_test_info.to_json(__snake_case					)     ,		__snake_case					)






					def   lowerCamelCase__   (			self  :      Optional[Any]					)			->							Union[str, Any]:
											__magic_name__:	Tuple							=       get_model_to_tester_mapping(__snake_case					)
											__magic_name__:	int							=       get_model_to_tester_mapping(__snake_case					)

											__magic_name__:	Union[str, Any]							=       {
											    """BertForMaskedLM""": ["""BertModelTester"""],
											    """BertForMultipleChoice""": ["""BertModelTester"""],
											    """BertForNextSentencePrediction""": ["""BertModelTester"""],
											    """BertForPreTraining""": ["""BertModelTester"""],
											    """BertForQuestionAnswering""": ["""BertModelTester"""],
											    """BertForSequenceClassification""": ["""BertModelTester"""],
											    """BertForTokenClassification""": ["""BertModelTester"""],
											    """BertLMHeadModel""": ["""BertModelTester"""],
											    """BertModel""": ["""BertModelTester"""],
											}

											__magic_name__:	List[Any]							=       {
											    """BlipForConditionalGeneration""": ["""BlipTextImageModelsModelTester"""],
											    """BlipForImageTextRetrieval""": ["""BlipTextRetrievalModelTester"""],
											    """BlipForQuestionAnswering""": ["""BlipVQAModelTester"""],
											    """BlipModel""": ["""BlipModelTester"""],
											    """BlipTextModel""": ["""BlipTextModelTester"""],
											    """BlipVisionModel""": ["""BlipVisionModelTester"""],
											}

											self.assertEqual(get_test_info.to_json(__snake_case					)     ,		__snake_case					)
											self.assertEqual(get_test_info.to_json(__snake_case					)     ,		__snake_case					)











"""simple docstring"""





def   a    (     __UpperCAmelCase      :    int      ,   __UpperCAmelCase      :    int  )    ->							int:
						while b:
												__magic_name__,			__magic_name__:	Optional[int]							=       b, a % b
						return a



def   a    (     __UpperCAmelCase      :    int      ,   __UpperCAmelCase      :    int  )    ->							int:
						return a if b == 0 else euclidean_gcd_recursive(__UpperCAmelCase      ,   a % b  )



def   a    (     )    ->							List[Any]:
						print(f'euclidean_gcd(3, 5) = {euclidean_gcd(3      ,   5  )}'  )
						print(f'euclidean_gcd(5, 3) = {euclidean_gcd(5      ,   3  )}'  )
						print(f'euclidean_gcd(1, 3) = {euclidean_gcd(1      ,   3  )}'  )
						print(f'euclidean_gcd(3, 6) = {euclidean_gcd(3      ,   6  )}'  )
						print(f'euclidean_gcd(6, 3) = {euclidean_gcd(6      ,   3  )}'  )

						print(f'euclidean_gcd_recursive(3, 5) = {euclidean_gcd_recursive(3      ,   5  )}'  )
						print(f'euclidean_gcd_recursive(5, 3) = {euclidean_gcd_recursive(5      ,   3  )}'  )
						print(f'euclidean_gcd_recursive(1, 3) = {euclidean_gcd_recursive(1      ,   3  )}'  )
						print(f'euclidean_gcd_recursive(3, 6) = {euclidean_gcd_recursive(3      ,   6  )}'  )
						print(f'euclidean_gcd_recursive(6, 3) = {euclidean_gcd_recursive(6      ,   3  )}'  )


if __name__ == "__main__":
							main()



