code: def url2path(url, data=True, ext:str='.tgz'):
      "Change `url` to a path."
      name = url2name(url)
      return datapath4file(name, ext=ext, archive=False) if data else modelpath4file(name, ext=extf url2path(url, data=True, ext:str='.tgz'):
      "Change `url` to a path."
      name = url2name(url)
      return datapath4file(name, ext=ext, archive=False) if data else modelpath4file(name, ext=ext)
docs: Change `url` to a path.