






from __future__ import annotations






def   a      (						lowerCamelCase_    ):






				'''simple docstring'''
				lowercase__       			=      42
				lowercase__       			=      list(lowerCamelCase_    )
				lowercase__			,						lowercase__       			=      _vector[:-1], int(_vector[-1]    )
				lowercase__       			=      [int(lowerCamelCase_    ) for digit in __vector]

				vector.reverse()
				for i, digit in enumerate(lowerCamelCase_    ):
								if i & 1 == 0:
												lowercase__       			=      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 typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_torch_available


A__     :      Dict             =			{'configuration_sew_d': ['SEW_D_PRETRAINED_CONFIG_ARCHIVE_MAP', 'SEWDConfig']}

try:
							if not is_torch_available():
														raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
							pass
else:
							A__     :      Union[str, Any]             =			[
							    'SEW_D_PRETRAINED_MODEL_ARCHIVE_LIST',
							    'SEWDForCTC',
							    'SEWDForSequenceClassification',
							    'SEWDModel',
							    'SEWDPreTrainedModel',
							]

if TYPE_CHECKING:
							from .configuration_sew_d import SEW_D_PRETRAINED_CONFIG_ARCHIVE_MAP, SEWDConfig

							try:
														if not is_torch_available():
																					raise OptionalDependencyNotAvailable()
							except OptionalDependencyNotAvailable:
														pass
							else:
														from .modeling_sew_d import (
														    SEW_D_PRETRAINED_MODEL_ARCHIVE_LIST,
														    SEWDForCTC,
														    SEWDForSequenceClassification,
														    SEWDModel,
														    SEWDPreTrainedModel,
														)


else:
							import sys

							A__     :      Tuple             =			_LazyModule(__name__, globals()['__file__'], _import_structure, module_spec=__spec__)




