



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



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


if __name__ == "__main__":
			import doctest

			doctest.testmod()





"""simple docstring"""
import warnings

from .generation import TFGenerationMixin


class 							lowerCamelCase_(   A__    ):





					'''simple docstring'''



					warnings.warn(
					    'Importing `TFGenerationMixin` from `src/transformers/generation_tf_utils.py` is deprecated and will '
					    'be removed in Transformers v5. Import as `from transformers import TFGenerationMixin` instead.',				A__,				)
