





from __future__ import annotations




def   _SCREAMING_SNAKE_CASE      (	snake_case_		:						str						):
     __magic_name__				=       42
     __magic_name__				=       list(snake_case_						)
     __magic_name__		,  __magic_name__				=       _vector[:-1], int(_vector[-1]						)
     __magic_name__				=       [int(snake_case_						) for digit in __vector]

     vector.reverse()
     for i, digit in enumerate(snake_case_						):
          if i & 1 == 0:
               __magic_name__				=       digit * 2
               if doubled > 9:
                    doubled -= 9
               check_digit += doubled
          else:
               check_digit += digit

     return check_digit % 10 == 0


if __name__ == "__main__":
    import doctest

    doctest.testmod()
    assert is_luhn('79927398713')
    assert not is_luhn('79927398714')






from ..utils import DummyObject, requires_backends



class  SCREAMING_SNAKE_CASE_  ( metaclass=SCREAMING_SNAKE_CASE__			):


  """simple docstring"""





  _a								=							["""torch""", """transformers""", """k_diffusion"""]





  def __init__(  self	,  *A	,  **A						)		->   Optional[Any]:





       '''simple docstring'''







       requires_backends(self	,  ['''torch''', '''transformers''', '''k_diffusion''']						)





  @classmethod
  def 			__A      (  cls	,  *A	,  **A						)		->   Dict:





       '''simple docstring'''







       requires_backends(cls	,  ['''torch''', '''transformers''', '''k_diffusion''']						)







  @classmethod
  def 			__A      (  cls	,  *A	,  **A						)		->   Optional[Any]:





       '''simple docstring'''







       requires_backends(cls	,  ['''torch''', '''transformers''', '''k_diffusion''']						)