code: def write(data, url, mode="wb"):
      if urlparse(url).scheme in ("http", "https"):
          message = "Writing to remote URL (%s) is not yet supported."
          raise ValueError(message, url)
  
      _write_to_path(data, url, mode=mode)
  
file_path: lucid/lucid/misc/io/writing.py
imports: from __future__ import absolute_import, division, print_function
  import os
  import logging
  from contextlib import contextmanager
  from urllib.parse import urlparse
  from tensorflow import gfile
  from lucid.misc.io.scoping import scope_url
label_desc: Use image node_id 4 for calling a global function with example usage: write(data, url, mode) without return types