code: def html_define_svelte(line, cell):
      base_name = line.split()[0]
      id_str = js_id(base_name)
      html_fname = osp.join(_svelte_temp_dir, id_str + ".html")
      with open(html_fname, "w") as f:
          f.write(cell)
      component = SvelteComponent(id_str, html_fname)
      globals()[base_name] = component
  
file_path: lucid/lucid/scratch/web/svelte.py
imports: import random
  import json
  import tempfile
  import subprocess
  import os.path
  import uuid
  from IPython.core.magic import register_cell_magic
  from lucid.misc.io.showing import _display_html
  from lucid.misc.io.reading import read
label_desc: Use image node_id 4 for calling a global function with example usage: html_define_svelte(line, cell) without return types