code: def dot2svg(dot):
      # type: (str) -> str
      """Render Graphviz data to SVG"""
      svg = (
          graphviz.Source(dot).pipe(format="svg").decode("utf8")
      )  # type: str
      # strip doctype and xml declaration
      svg = svg[svg.index("<svg") :]
      return svg
  
label_desc: Use image node_id 2 for calling a global function with example usage: dot2svg(dot) and returns: svg