


import os
import sys
import unittest


a			:			Dict												=					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,
)


a			:			Tuple												=					os.path.join('''tests''', '''models''', '''bert''', '''test_modeling_bert.py''')
a			:			Union[str, Any]												=					os.path.join('''tests''', '''models''', '''blip''', '''test_modeling_blip.py''')
class 						lowerCamelCase_							(					unittest.TestCase					):



					'''simple docstring'''







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







								'''simple docstring'''

								__lowercase			       = get_test_to_tester_mapping(snake_case_    )
								__lowercase			       = get_test_to_tester_mapping(snake_case_    )

								__lowercase			       = {'''BertModelTest''': '''BertModelTester'''}

								__lowercase			       = {
								    '''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 A   (					self    ) ->      str:







								'''simple docstring'''

								__lowercase			       = get_model_to_test_mapping(snake_case_    )
								__lowercase			       = get_model_to_test_mapping(snake_case_    )

								__lowercase			       = {
								    '''BertForMaskedLM''': ['''BertModelTest'''],
								    '''BertForMultipleChoice''': ['''BertModelTest'''],
								    '''BertForNextSentencePrediction''': ['''BertModelTest'''],
								    '''BertForPreTraining''': ['''BertModelTest'''],
								    '''BertForQuestionAnswering''': ['''BertModelTest'''],
								    '''BertForSequenceClassification''': ['''BertModelTest'''],
								    '''BertForTokenClassification''': ['''BertModelTest'''],
								    '''BertLMHeadModel''': ['''BertModelTest'''],
								    '''BertModel''': ['''BertModelTest'''],
								}

								__lowercase			       = {
								    '''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 A   (					self    ) ->      Dict:







								'''simple docstring'''

								__lowercase			       = get_model_to_tester_mapping(snake_case_    )
								__lowercase			       = get_model_to_tester_mapping(snake_case_    )

								__lowercase			       = {
								    '''BertForMaskedLM''': ['''BertModelTester'''],
								    '''BertForMultipleChoice''': ['''BertModelTester'''],
								    '''BertForNextSentencePrediction''': ['''BertModelTester'''],
								    '''BertForPreTraining''': ['''BertModelTester'''],
								    '''BertForQuestionAnswering''': ['''BertModelTester'''],
								    '''BertForSequenceClassification''': ['''BertModelTester'''],
								    '''BertForTokenClassification''': ['''BertModelTester'''],
								    '''BertLMHeadModel''': ['''BertModelTester'''],
								    '''BertModel''': ['''BertModelTester'''],
								}

								__lowercase			       = {
								    '''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_    )






from maths.prime_factors import prime_factors


def 		lowercase_	(  _UpperCamelCase	):


			'''simple docstring'''







			if not isinstance(_UpperCamelCase							,      _UpperCamelCase	):
						__lowercase			       = F'Input value of [number={number}] must be an integer'
						raise TypeError(_UpperCamelCase	)
			if number < 1:
						raise ValueError('''Input must be a positive integer'''	)
			return -1 if len(prime_factors(_UpperCamelCase	)	) % 2 else 1


if __name__ == "__main__":
	import doctest

	doctest.testmod()


