


def      _a					( SCREAMING_SNAKE_CASE	):


		"""simple docstring"""




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


		"""simple docstring"""




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


if __name__ == "__main__":
			import doctest

			doctest.testmod()









'''simple docstring'''






import os


# All paths are set with the intent you should run this script from the root of the repo with the command
# python utils/check_doctest_list.py
A__							:  Optional[int]    ='''.'''


if __name__ == "__main__":
      A__							:  int    =os.path.join(REPO_PATH, '''utils/documentation_tests.txt''')
      A__							:  Optional[int]    =[]
      A__							:  Tuple    =[]
      with open(doctest_file_path) as fp:
            for line in fp:
                  A__							:  Optional[Any]    =line.strip()
                  A__							:  Union[str, Any]    =os.path.join(REPO_PATH, line)
                  if not (os.path.isfile(path) or os.path.isdir(path)):
                        non_existent_paths.append(line)
                  all_paths.append(path)
      if len(non_existent_paths) > 0:
            A__							:  List[Any]    ='''\n'''.join(non_existent_paths)
            raise ValueError(F"""`utils/documentation_tests.txt` contains non-existent paths:\n{non_existent_paths}""")
      if all_paths != sorted(all_paths):
            raise ValueError('''Files in `utils/documentation_tests.txt` are not in alphabetical order.''')






