code: def get_encoded_base64(figure):
      as_raw_bytes = BytesIO()
      figure.savefig(as_raw_bytes, format="png", transparent=True)
      as_raw_bytes.seek(0)
      return base64.b64encode(as_raw_bytes.read())
  
file_path: sweetviz/sweetviz/graph.py
imports: import matplotlib
  import os.path
  import matplotlib.pyplot
  import matplotlib.font_manager
  from io import BytesIO
  import base64
  from pkg_resources import resource_filename
  from pandas.plotting import register_matplotlib_converters
  from sweetviz import sv_html_formatters
  from sweetviz.config import config
label_desc: Use image node_id 2 for calling the Graph obj's underlying member method code with example usage: obj.get_encoded_base64(figure) and returns: base64