code: def download_url(url, folder, log=True):
      r"""Downloads the content of an URL to a specific folder.
  
      Args:
          url (string): The url.
          folder (string): The folder.
          log (bool, optional): If :obj:`False`, will not print anything to the
              console. (default: :obj:`True`)
      """
  
      filename = url.rpartition("/")[2]
      path = osp.join(folder, filename)
  
      if osp.exists(path):  # pragma: no cover
          if log:
              print("Using exist file", filename)
          return path
  
      if log:
          print("Downloading", url)
  
      try:
          os.makedirs(folder)
      except:
          pass
      context = ssl._create_unverified_context()
      data = urllib.request.urlopen(url, context=context)
  
      with open(path, "wb") as f:
          f.write(data.read())
  
      return path
  
imports: import os
  import os.path
  from six.moves import urllib
  import ssl
label_desc: Use image node_id 1 for calling a global function with example usage: download_url(url, folder, log) and returns: path, path