code: def pipeline_to_html(pipeline) -> ET.Element:
      div = ET.Element(
          "div", attrib={"class": "river-component river-pipeline"}
      )
  
      for step in pipeline.steps.values():
          div.append(to_html(step))
  
      return div
  
file_path: river/river/base/viz.py
imports: from __future__ import annotations
  import inspect
  import textwrap
  from xml.etree import ElementTree
label_desc: Use image node_id 3 for calling a global function with example usage: pipeline_to_html(pipeline) and returns: div