'''simple docstring'''

from typing import TYPE_CHECKING

from ...utils import _LazyModule


_lowerCamelCase :				Optional[Any]														= {"""tokenization_phobert""": ["""PhobertTokenizer"""]}


if TYPE_CHECKING:
      from .tokenization_phobert import PhobertTokenizer

else:
      import sys

      _lowerCamelCase :				int														= _LazyModule(__name__, globals()["""__file__"""], _import_structure, module_spec=__spec__)






"""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')


