code: def escape_url(url: str) -> str:
      parsed = urlparse(url)
      return f"{parsed.scheme}://{parsed.netloc}{quote(parsed.path)}?{urlencode(parse_qs(parsed.query), doseq=True)}"
  
imports: import copy
  import glob
  import re
  from functools import partial
  from os import PathLike
  from typing import Union
  from urllib.parse import parse_qs, quote, urlencode, urlparse
  import fsspec
  import numpy
  import pandas
  import torch
  from flash.core.data.utilities.paths import has_file_allowed_extension
  from flash.core.utilities.imports import _TOPIC_AUDIO_AVAILABLE, _TORCHVISION_AVAILABLE, Image
label_desc: Use image node_id 11 for calling a global function with example usage: escape_url(url) and returns: parsed, str, parsed, quote, str, urlencode