




__a							     =					'Input must be a string of 8 numbers plus letter'
__a							     =					'TRWAGMYFPDXBNJZSQVHLCKE'







def lowerCamelCase__  (     _lowercase ):

     '''simple docstring'''


     if not isinstance(_lowercase					,		_lowercase ):
          UpperCAmelCase_     :				List[Any]  =     f'''Expected string as input, found {type(_lowercase ).__name__}'''
          raise TypeError(_lowercase )

     UpperCAmelCase_     :				Tuple  =     spanish_id.replace('''-'''					,		'''''' ).upper()
     if len(_lowercase ) != 9:
          raise ValueError(_lowercase )

     try:
          UpperCAmelCase_     :				str  =     int(spanish_id_clean[0:8] )
          UpperCAmelCase_     :				Optional[int]  =     spanish_id_clean[8]
     except ValueError as ex:
          raise ValueError(_lowercase ) from ex

     if letter.isdigit():
          raise ValueError(_lowercase )

     return letter == LOOKUP_LETTERS[number % 23]


if __name__ == "__main__":
     import doctest

     doctest.testmod()





from typing import TYPE_CHECKING

from ...utils import (
    OptionalDependencyNotAvailable,
    _LazyModule,
    is_sentencepiece_available,
    is_tokenizers_available,
    is_torch_available,
)


__a							     =					{}

try:
     if not is_sentencepiece_available():
          raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
     pass
else:
     __a							     =					['NllbTokenizer']

try:
     if not is_tokenizers_available():
          raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
     pass
else:
     __a							     =					['NllbTokenizerFast']


if TYPE_CHECKING:
     try:
          if not is_sentencepiece_available():
               raise OptionalDependencyNotAvailable()
     except OptionalDependencyNotAvailable:
          pass
     else:
          from .tokenization_nllb import NllbTokenizer

     try:
          if not is_tokenizers_available():
               raise OptionalDependencyNotAvailable()
     except OptionalDependencyNotAvailable:
          pass
     else:
          from .tokenization_nllb_fast import NllbTokenizerFast

else:
     import sys

     __a							     =					_LazyModule(__name__, globals()['__file__'], _import_structure, module_spec=__spec__)