






def   snake_case (UpperCAmelCase__  )	->    bool:
  if not isinstance(UpperCAmelCase__     ,   UpperCAmelCase__  ):
    UpperCamelCase_: Optional[Any]   				=    F'''Input value of [number={number}] must be an integer'''
    raise TypeError(UpperCAmelCase__  )
  if number < 0:
    return False
  UpperCamelCase_: Any   				=    number * number
  while number > 0:
    if number % 1_0 != number_square % 1_0:
      return False
    number //= 1_0
    number_square //= 1_0
  return True


if __name__ == "__main__":
   import doctest

   doctest.testmod()







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_		:		List[str]		     =			'.'


if __name__ == "__main__":
   A_		:		Dict		     =			os.path.join(REPO_PATH, 'utils/documentation_tests.txt')
   A_		:		Dict		     =			[]
   A_		:		Optional[Any]		     =			[]
   with open(doctest_file_path) as fp:
      for line in fp:
         A_		:		Tuple		     =			line.strip()
         A_		:		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_		:		str		     =			'\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.')