
def   __lowerCAmelCase    (				UpperCAmelCase__					:   list							)	->     bool:
							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
							lowerCamelCase_					=       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__					:   list							)	->     float:
							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"""							)
							lowerCamelCase_					=       0
							for val in series:
														answer += val
							return answer / len(UpperCAmelCase__							)


if __name__ == "__main__":
		import doctest

		doctest.testmod()







import fire

from transformers import AutoConfig, AutoModelForSeqaSeqLM, AutoTokenizer



def   __lowerCAmelCase    (				UpperCAmelCase__					:   str      ,					UpperCAmelCase__					:   str      ,					**UpperCAmelCase__					:   List[str]							)	->     Tuple:
							lowerCamelCase_					=       AutoConfig.from_pretrained(UpperCAmelCase__      ,					**UpperCAmelCase__							)
							lowerCamelCase_					=       AutoModelForSeqaSeqLM.from_config(UpperCAmelCase__							)
							model.save_pretrained(UpperCAmelCase__							)
							AutoTokenizer.from_pretrained(UpperCAmelCase__							).save_pretrained(UpperCAmelCase__							)
							return model


if __name__ == "__main__":
		fire.Fire(save_randomly_initialized_version)





