
"""simple docstring"""




import warnings

from ...utils import logging
from .image_processing_deit import DeiTImageProcessor


A__   :					List[str]							=   logging.get_logger(__name__)


class 			__magic_name__       (       SCREAMING_SNAKE_CASE__ ):
       def __init__(     self ,				*A_ ,				**A_       )     ->	Optional[Any]:





         """simple docstring"""




         warnings.warn(
             '''The class DeiTFeatureExtractor is deprecated and will be removed in version 5 of Transformers. Please'''
             ''' use DeiTImageProcessor instead.''' ,				_lowerCAmelCase ,				)
         super().__init__(*_lowerCAmelCase ,				**_lowerCAmelCase       )


"""simple docstring"""




def  _lowerCAmelCase		(		_UpperCamelCase						):






  """simple docstring"""



  if not isinstance(_UpperCamelCase ,				_UpperCamelCase						):
    raise ValueError('''Input series is not valid, valid series - [2, 4, 6]'''						)
  if len(_UpperCamelCase						) == 0:
    raise ValueError('''Input list must be a non empty list'''						)
  if len(_UpperCamelCase						) == 1:
    return True
  _lowercase:			Any       =     series[1] - series[0]
  for index in range(len(_UpperCamelCase						) - 1						):
    if series[index + 1] - series[index] != common_diff:
      return False
  return True




def  _lowerCAmelCase		(		_UpperCamelCase						):






  """simple docstring"""



  if not isinstance(_UpperCamelCase ,				_UpperCamelCase						):
    raise ValueError('''Input series is not valid, valid series - [2, 4, 6]'''						)
  if len(_UpperCamelCase						) == 0:
    raise ValueError('''Input list must be a non empty list'''						)
  _lowercase:			Tuple       =     0
  for val in series:
    answer += val
  return answer / len(_UpperCamelCase						)


if __name__ == "__main__":
  import doctest

  doctest.testmod()
