



"""simple docstring"""






import warnings

from .generation import GenerationMixin

class 			__SCREAMING_SNAKE_CASE      ( lowercase_  ):


					'''simple docstring'''





					warnings.warn(
					    'Importing `GenerationMixin` from `src/transformers/generation_utils.py` is deprecated and will '
					    'be removed in Transformers v5. Import as `from transformers import GenerationMixin` instead.'						,  lowercase_						,  )











"""simple docstring"""
from __future__ import annotations






def    A__							(     UpperCamelCase			):
							A						=    42
							A						=    list(UpperCamelCase			)
							A,      A						=    _vector[:-1], int(_vector[-1]			)
							A						=    [int(UpperCamelCase			) for digit in __vector]

							vector.reverse()
							for i, digit in enumerate(UpperCamelCase			):
														if i & 1 == 0:
																					A						=    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')


