




'''simple docstring'''





from __future__ import annotations





def UpperCAmelCase    (       UpperCAmelCase_						):
    _a				:							int
    _a				:							list[str]							       =      list(UpperCAmelCase_						)
    _a       , _a				:							List[Any]							       =      _vector[:-1], int(_vector[-1]						)
    _a				:							list[int]							       =      [int(UpperCAmelCase_						) for digit in __vector]

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



import warnings

from ...utils import logging
from .image_processing_vit import ViTImageProcessor


__lowerCamelCase     :					Union[str, Any]				  =						logging.get_logger(__name__)







class __snake_case							(		lowerCamelCase_						):




   def __init__(       self     :							str			,      *_lowercase     :							str			,      **_lowercase     :							str ):



     """simple docstring"""






     warnings.warn(
         """The class ViTFeatureExtractor is deprecated and will be removed in version 5 of Transformers. Please"""
         """ use ViTImageProcessor instead."""			,      _lowercase			,      )
     super().__init__(*_lowercase			,      **_lowercase )
