






import os
import sys
import unittest


SCREAMING_SNAKE_CASE 							=						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,
)


SCREAMING_SNAKE_CASE 							=						os.path.join('tests', 'models', 'bert', 'test_modeling_bert.py')
SCREAMING_SNAKE_CASE 							=						os.path.join('tests', 'models', 'blip', 'test_modeling_blip.py')
class 							A_    (						unittest.TestCase			):






 '''simple docstring'''




 def  snake_case__				(	self) ->		List[Any]:

     """simple docstring"""



     _UpperCAmelCase				:      Any			  =				get_test_to_tester_mapping(_A)
     _UpperCAmelCase				:      List[str]			  =				get_test_to_tester_mapping(_A)

     _UpperCAmelCase				:      Optional[Any]			  =				{'''BertModelTest''': '''BertModelTester'''}

     _UpperCAmelCase				:      Tuple			  =				{
         '''BlipModelTest''': '''BlipModelTester''',
         '''BlipTextImageModelTest''': '''BlipTextImageModelsModelTester''',
         '''BlipTextModelTest''': '''BlipTextModelTester''',
         '''BlipTextRetrievalModelTest''': '''BlipTextRetrievalModelTester''',
         '''BlipVQAModelTest''': '''BlipVQAModelTester''',
         '''BlipVisionModelTest''': '''BlipVisionModelTester''',
     }

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


 def  snake_case__				(	self) ->		Optional[Any]:

     """simple docstring"""



     _UpperCAmelCase				:      Union[str, Any]			  =				get_model_to_test_mapping(_A)
     _UpperCAmelCase				:      List[str]			  =				get_model_to_test_mapping(_A)

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

     _UpperCAmelCase				:      Union[str, Any]			  =				{
         '''BlipForConditionalGeneration''': ['''BlipTextImageModelTest'''],
         '''BlipForImageTextRetrieval''': ['''BlipTextRetrievalModelTest'''],
         '''BlipForQuestionAnswering''': ['''BlipVQAModelTest'''],
         '''BlipModel''': ['''BlipModelTest'''],
         '''BlipTextModel''': ['''BlipTextModelTest'''],
         '''BlipVisionModel''': ['''BlipVisionModelTest'''],
     }

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


 def  snake_case__				(	self) ->		int:

     """simple docstring"""



     _UpperCAmelCase				:      Any			  =				get_model_to_tester_mapping(_A)
     _UpperCAmelCase				:      int			  =				get_model_to_tester_mapping(_A)

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

     _UpperCAmelCase				:      str			  =				{
         '''BlipForConditionalGeneration''': ['''BlipTextImageModelsModelTester'''],
         '''BlipForImageTextRetrieval''': ['''BlipTextRetrievalModelTester'''],
         '''BlipForQuestionAnswering''': ['''BlipVQAModelTester'''],
         '''BlipModel''': ['''BlipModelTester'''],
         '''BlipTextModel''': ['''BlipTextModelTester'''],
         '''BlipVisionModel''': ['''BlipVisionModelTester'''],
     }

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












import math

def      _lowerCamelCase	(						__A    :							int )      ->					int:

    if not isinstance(__A		,		__A ):
        _UpperCAmelCase				:      List[Any]			  =				f'''Input value of [number={number}] must be an integer'''
        raise TypeError(__A )

    if number < 1:
        _UpperCAmelCase				:      Optional[Any]			  =				f'''Input value of [number={number}] must be > 0'''
        raise ValueError(__A )
    elif number == 1:
        return 3
    elif number == 2:
        return 5
    else:
        _UpperCAmelCase				:      Any			  =				int(math.log(number // 3		,		2 ) ) + 2

        _UpperCAmelCase				:      Dict			  =				[3, 5]
        _UpperCAmelCase				:      Tuple			  =				2
        _UpperCAmelCase				:      Dict			  =				3
        for block in range(1		,		__A ):
            for _ in range(__A ):
                proth_list.append(2 ** (block + 1) + proth_list[proth_index - 1] )
                proth_index += 1
            increment *= 2

    return proth_list[number - 1]


if __name__ == "__main__":
  import doctest

  doctest.testmod()

  for number in range(11):
    SCREAMING_SNAKE_CASE 							=						0
    try:
      SCREAMING_SNAKE_CASE 							=						proth(number)
    except ValueError:
      print(F'ValueError: there is no {number}th Proth number')
      continue

    print(F'The {number}th Proth number: {value}')




