
'''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
UpperCAmelCase    					=   "."


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



'''simple docstring'''





from .testing import (
    are_the_same_tensors,
    execute_subprocess_async,
    require_bnb,
    require_cpu,
    require_cuda,
    require_huggingface_suite,
    require_mps,
    require_multi_gpu,
    require_multi_xpu,
    require_safetensors,
    require_single_gpu,
    require_single_xpu,
    require_torch_min_version,
    require_tpu,
    require_xpu,
    skip,
    slow,
)
from .training import RegressionDataset, RegressionModel, RegressionModelaXPU


from .scripts import test_script, test_sync, test_ops  # isort: skip

