



'''simple docstring'''


import os
import sys

lowercase							       =			os.path.join(os.path.dirname(__file__), '''src''')
sys.path.append(SRC_DIR)


from transformers import (
    AutoConfig,
    AutoModel,
    AutoModelForCausalLM,
    AutoModelForMaskedLM,
    AutoModelForQuestionAnswering,
    AutoModelForSequenceClassification,
    AutoTokenizer,
    add_start_docstrings,
)


lowercase							       =			[
    '''torch''',
    '''numpy''',
    '''tokenizers''',
    '''filelock''',
    '''requests''',
    '''tqdm''',
    '''regex''',
    '''sentencepiece''',
    '''sacremoses''',
    '''importlib_metadata''',
    '''huggingface_hub''',
]






@add_start_docstrings(AutoConfig.__doc__       )
def  UpperCAmelCase_       (		*lowercase__       ,	**lowercase__       ):


					'''simple docstring'''







					return AutoConfig.from_pretrained(*lowercase__       ,	**lowercase__       )






@add_start_docstrings(AutoTokenizer.__doc__       )
def  UpperCAmelCase_       (		*lowercase__       ,	**lowercase__       ):


					'''simple docstring'''







					return AutoTokenizer.from_pretrained(*lowercase__       ,	**lowercase__       )






@add_start_docstrings(AutoModel.__doc__       )
def  UpperCAmelCase_       (		*lowercase__       ,	**lowercase__       ):


					'''simple docstring'''







					return AutoModel.from_pretrained(*lowercase__       ,	**lowercase__       )






@add_start_docstrings(AutoModelForCausalLM.__doc__       )
def  UpperCAmelCase_       (		*lowercase__       ,	**lowercase__       ):


					'''simple docstring'''







					return AutoModelForCausalLM.from_pretrained(*lowercase__       ,	**lowercase__       )






@add_start_docstrings(AutoModelForMaskedLM.__doc__       )
def  UpperCAmelCase_       (		*lowercase__       ,	**lowercase__       ):


					'''simple docstring'''







					return AutoModelForMaskedLM.from_pretrained(*lowercase__       ,	**lowercase__       )






@add_start_docstrings(AutoModelForSequenceClassification.__doc__       )
def  UpperCAmelCase_       (		*lowercase__       ,	**lowercase__       ):


					'''simple docstring'''







					return AutoModelForSequenceClassification.from_pretrained(*lowercase__       ,	**lowercase__       )






@add_start_docstrings(AutoModelForQuestionAnswering.__doc__       )
def  UpperCAmelCase_       (		*lowercase__       ,	**lowercase__       ):


					'''simple docstring'''







					return AutoModelForQuestionAnswering.from_pretrained(*lowercase__       ,	**lowercase__       )







'''simple docstring'''


from __future__ import annotations






def  UpperCAmelCase_       (		lowercase__       ):


     '''simple docstring'''







     a_       		=str(lowercase__       )
     return len(lowercase__       ) == 9 and set(lowercase__       ) == set("123456789"       )






def  UpperCAmelCase_       (		):


     '''simple docstring'''







     for base_num in range(9_9_9_9       ,	4_9_9_9       ,	-1       ):
          a_       		=1_0_0_0_0_2 * base_num
          if is_9_pandigital(lowercase__       ):
               return candidate

     for base_num in range(3_3_3       ,	9_9       ,	-1       ):
          a_       		=1_0_0_2_0_0_3 * base_num
          if is_9_pandigital(lowercase__       ):
               return candidate

     return None


if __name__ == "__main__":
  print(F"""{solution() = }""")


