code: def scope_url(url, io_scopes=None):
      io_scopes = io_scopes or current_io_scopes()
      if "//" in url or url.startswith("/"):
          return url
      paths = io_scopes + [url]
      joined = os.path.join(*paths)
      normalized = _normalize_url(joined)
      return normalized
  
file_path: lucid/lucid/misc/io/scoping.py
imports: import os
  from copy import copy
  import threading
  import sys
  from contextlib import contextmanager
label_desc: Use image node_id 5 for calling a global function with example usage: scope_url(url, io_scopes) and returns: normalized, url