code: def display_model(model, tooltips=None):
      tooltips = tooltips or {}
      render = complete_render_model_graph(model)
  
      svg = """
      <script src="https://d3js.org/d3.v5.min.js"></script>
      <style>
        .node, .background {
          fill: hsla(213, 80%%, 85%%,1);
        }
        .node:hover, .background:hover {
          fill: hsla(213, 60%%, 70%%, 1);
        }
        .background {
          opacity: 0.7;
        }
        .tooltip {
          position: absolute;
          background: #F8F8FA;
          padding: 6px;
          border-radius: 4px;
          transition: opacity 0.2s, left 0.2s, top 0.2s;
        }
      </style>
  
      <div style="width: %spx; height: %spx; position: relative" id="container">
      <svg width="100%%" height="100%%" style="position: absolute; top: 0px; left:0px;">
  
      <g transform="translate(0, 0)" class="model">
        %s
      </g>
      </svg>
      </div>
      """ % (
          render["shape"][0] + 200,
          render["shape"][1] + 40,
          render["svg_inner"],
      )
      _display_html(svg)
  
file_path: lucid/lucid/scratch/pretty_graphs/visualizations.py
imports: import numpy
  import tensorflow
  import json
  import lucid.modelzoo.vision_models
  from lucid.misc.io.showing import _image_url, _display_html
  from lucid.scratch.pretty_graphs.format_graph import complete_render_model_graph
  from lucid.misc.io import show, load
label_desc: Use image node_id 1 for calling a global function with example usage: display_model(model, tooltips) without return types