


'''simple docstring'''





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







def        lowerCAmelCase_  (      __lowerCamelCase			):
							if not isinstance(__lowerCamelCase							,			__lowerCamelCase			):
														raise ValueError("Input series is not valid, valid series - [2, 4, 6]"			)
							if len(__lowerCamelCase			) == 0:
														raise ValueError("Input list must be a non empty list"			)
							__snake_case	:    str											=     0
							for val in series:
														answer += val
							return answer / len(__lowerCamelCase			)


if __name__ == "__main__":
			import doctest

			doctest.testmod()





import warnings

from ...utils import logging
from .image_processing_poolformer import PoolFormerImageProcessor


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

class        a	(_lowerCAmelCase   ):




							"""simple docstring"""


							def __init__(							self :						int					,			*lowerCamelCase :						Any					,			**lowerCamelCase :						Union[str, Any]       )			->					None:
														warnings.warn(
														    "The class PoolFormerFeatureExtractor is deprecated and will be removed in version 5 of Transformers."
														    " Please use PoolFormerImageProcessor instead."					,			lowerCamelCase					,			)
														super().__init__(*lowerCamelCase					,			**lowerCamelCase       )

