


'''simple docstring'''

import warnings

from ...utils import logging
from .image_processing_imagegpt import ImageGPTImageProcessor


lowerCamelCase				:  Tuple    		=      logging.get_logger(__name__)
class     __lowerCAmelCase		(lowercase_	):





      '''simple docstring'''






      def __init__(self       :       Tuple  ,		*UpperCamelCase       :       str  ,		**UpperCamelCase       :       Dict					):

             '''simple docstring'''







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








'''simple docstring'''

def _SCREAMING_SNAKE_CASE (A			)			->			bool:






       """simple docstring"""







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

def _SCREAMING_SNAKE_CASE (A			)			->			float:






       """simple docstring"""







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


if __name__ == "__main__":
 import doctest

 doctest.testmod()




