

def 				snake_case_(_UpperCamelCase					)							->     bool:



  """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
  _snake_case						=							series[1] - series[0]
  for index in range(len(_UpperCamelCase					) - 1					):
    if series[index + 1] - series[index] != common_diff:
      return False
  return True



def 				snake_case_(_UpperCamelCase					)							->     float:



  """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'''					)
  _snake_case						=							0
  for val in series:
    answer += val
  return answer / len(_UpperCamelCase					)


if __name__ == "__main__":
 import doctest

 doctest.testmod()




import warnings

from ...utils import logging
from .image_processing_deformable_detr import DeformableDetrImageProcessor


__A      		=     logging.get_logger(__name__)



class   lowercase_   (  __lowercase					):



      def __init__(      self				:    Optional[Any]      , *A__				:    List[Any]      , **A__				:    int		)   ->					None:
        warnings.warn(
            '''The class DeformableDetrFeatureExtractor is deprecated and will be removed in version 5 of Transformers.'''
            ''' Please use DeformableDetrImageProcessor instead.'''      , A__      , )
        super().__init__(*A__      , **A__		)

