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
Convert a normal path to template and the convert it back to a normal path with given path type.
converters/stylegan_official/dnnlib/submission/submit.py