code: def convert_fig_to_html(fig):
      """Convert Matplotlib figure 'fig' into a <img> tag for HTML use using base64 encoding."""
      import io
      import base64
  
      s = io.BytesIO()
      fig.savefig(s, format="png", bbox_inches="tight")
      plt.close()
      s = (
          base64.b64encode(s.getvalue())
          .decode("utf-8")
          .replace("\n", "")
      )
      return '<img align="left" src="data:image/png;base64,%s">' % s
  
file_path: shapash/shapash/report/visualisation.py
imports: from IPython.display import display, Markdown, Latex, HTML
  import matplotlib.pyplot
  import pandas
label_desc: Use image node_id 6 for calling a global function with example usage: convert_fig_to_html(fig) and returns: unknown