code: def make_temp_path(path, new_ext=None):
      
      root, ext = os.path.splitext(path)
      if new_ext is None:
          new_ext = ext
      temp_path = root + TEMP_EXTENSION + new_ext
      return temp_path
docs: Arguments:
  
        new_ext: the new file extension, including the leading dot.
          Defaults to preserving the existing file extension.