"""simple docstring"""






__lowerCAmelCase    :       str					     ="""Input must be a string of 8 numbers plus letter"""
__lowerCAmelCase    :       Dict					     ="""TRWAGMYFPDXBNJZSQVHLCKE"""


def 			UpperCAmelCase__       (				lowerCAmelCase__     :str		) ->    bool:
      '''simple docstring'''


      if not isinstance(lowerCAmelCase__					,		lowerCAmelCase__		):
            lowercase														=	f'Expected string as input, found {type(lowerCAmelCase__		).__name__}'
            raise TypeError(lowerCAmelCase__		)

      lowercase														=	spanish_id.replace("""-"""					,		""""""		).upper()
      if len(lowerCAmelCase__		) != 9:
            raise ValueError(lowerCAmelCase__		)

      try:
            lowercase														=	int(spanish_id_clean[0:8]		)
            lowercase														=	spanish_id_clean[8]
      except ValueError as ex:
            raise ValueError(lowerCAmelCase__		) from ex

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

      return letter == LOOKUP_LETTERS[number % 2_3]


if __name__ == "__main__":
       import doctest

       doctest.testmod()




"""simple docstring"""






from ..utils import DummyObject, requires_backends





class  _A						(       metaclass=lowerCAmelCase	):
      snake_case__			:   Optional[int]							  =	['torch', 'torchsde']

      def __init__(						self		,       *__lowerCAmelCase		,       **__lowerCAmelCase						):







            """simple docstring"""



            requires_backends(self		,       ["""torch""", """torchsde"""]						)

      @classmethod
      def 				A__       (						cls		,       *__lowerCAmelCase		,       **__lowerCAmelCase						):







            """simple docstring"""



            requires_backends(cls		,       ["""torch""", """torchsde"""]						)







      @classmethod
      def 				A__       (						cls		,       *__lowerCAmelCase		,       **__lowerCAmelCase						):







            """simple docstring"""



            requires_backends(cls		,       ["""torch""", """torchsde"""]						)



