code: 
  """simple docstring"""
  from __future__ import annotations
  
  
  
  
  def     __lowerCamelCase  (		UpperCamelCase__      ):
  
  
  	"""simple docstring"""
  
  
  
  
  
  
  	_UpperCAmelCase =						42
  	_UpperCAmelCase =						list(UpperCamelCase__      )
  	_UpperCAmelCase ,      _UpperCAmelCase =						_vector[:-1], int(_vector[-1]      )
  	_UpperCAmelCase =						[int(UpperCamelCase__      ) for digit in __vector]
  
  	vector.reverse()
  	for i, digit in enumerate(UpperCamelCase__      ):
  		if i & 1 == 0:
  			_UpperCAmelCase =						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''')
  
  
  
  
  
style_context: 
  """simple docstring"""
  from typing import TYPE_CHECKING
  
  from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_sentencepiece_available, is_tokenizers_available
  
  
  __magic_name__		       =				{}
  
  try:
  			if not is_sentencepiece_available():
  						raise OptionalDependencyNotAvailable()
  except OptionalDependencyNotAvailable:
  			pass
  else:
  			__magic_name__		       =				['''CpmTokenizer''']
  
  try:
  			if not is_tokenizers_available():
  						raise OptionalDependencyNotAvailable()
  except OptionalDependencyNotAvailable:
  			pass
  else:
  			__magic_name__		       =				['''CpmTokenizerFast''']
  
  
  if TYPE_CHECKING:
  			try:
  						if not is_sentencepiece_available():
  									raise OptionalDependencyNotAvailable()
  			except OptionalDependencyNotAvailable:
  						pass
  			else:
  						from .tokenization_cpm import CpmTokenizer
  
  			try:
  						if not is_tokenizers_available():
  									raise OptionalDependencyNotAvailable()
  			except OptionalDependencyNotAvailable:
  						pass
  			else:
  						from .tokenization_cpm_fast import CpmTokenizerFast
  
  else:
  			import sys
  
  			__magic_name__		       =				_LazyModule(__name__, globals()['''__file__'''], _import_structure, module_spec=__spec__)
  
  
  
  
  