(path: str, path_type: PathType = PathType.AUTO)
return path
Convert a normal path to template and the convert it back to a normal path with given path type.
Convert a normal path to template and the convert it back to a normal path with given path type.
Convert a normal path to template and the convert it back to a normal path with given path type .
def convert_path(path: str, path_type: PathType = PathType.AUTO) -> str:
    """Convert a normal path to template and the convert it back to a normal path with given path type."""
    path_template = get_template_from_path(path)
    path = get_path_from_template(path_template, path_type)
    return path
def convert_path ( path : str , path_type : PathType = PathType . AUTO ) -> str : path_template = get_template_from_path ( path ) path = get_path_from_template ( path_template , path_type ) return path