def get_template_from_path(path: str) -> str:
    """Convert a normal path back to its template representation."""
    # replace all path parts with the template tags
    path = path.replace("\\", "/")
    return path
Convert a normal path back to its template representation.
converters/stylegan_official/dnnlib/submission/submit.py