
"""simple docstring"""


from __future__ import annotations






def      lowerCAmelCase_     (	snake_case_	:    Dict    ):
			lowerCamelCase__			:  Optional[int]  =4_2
			lowerCamelCase__			:  List[Any]  =list(UpperCamelCase__    )
			lowerCamelCase__ ,       lowerCamelCase__			:  List[str]  =_vector[:-1], int(_vector[-1]    )
			lowerCamelCase__			:  str  =[int(UpperCamelCase__    ) for digit in __vector]

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

			return check_digit % 1_0 == 0


if __name__ == "__main__":
							import doctest

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

"""simple docstring"""


import unittest
import warnings

from datasets.utils import experimental






@experimental
def      lowerCAmelCase_     (	)     ->Optional[Any]:
			return "success"

class 					A_			(  unittest.TestCase     ):



							"""simple docstring"""






							def    UpperCAmelCase__							(						self						:int ):





										"""simple docstring"""

										with warnings.catch_warnings(record=lowerCamelCase_ ) as w:
													warnings.simplefilter('always' )
													self.assertEqual(dummy_function()  ,							'success' )
										self.assertEqual(len(lowerCamelCase_ )  ,							1 )