code: def make_relative(base, obj):
      
      uri = obj.get("location", obj.get("path"))
      if ":" in uri.split("/")[0] and not uri.startswith("file://"):
          pass
      else:
          if uri.startswith("file://"):
              uri = uri_file_path(uri)
              obj["location"] = os.path.relpath(uri, base)
docs: Relativize the location URI of a File or Directory object.