Path Utils Source Utility functions for paths. check_path_exists(path) Check if a path exists. If not, raise an error. Note that it returns path as a Path object. Parameters: path (Union[str, Path]) – Path to check. Returns: Path – Path as a Path object.