code: def _build_base64_frame_src(html_str):
      html_hex64 = base64.b64encode(html_str.encode("utf-8")).decode(
          "ascii"
      )
      return "data:text/html;base64,{}".format(html_hex64)
  
file_path: interpret/python/interpret-core/interpret/visual/_inline.py
imports: import os
  import time
  import uuid
  from plotly.io import to_json
  from plotly import graph_objs
  import sys
  import json
  import base64
  import logging
label_desc: Use image node_id 2 for calling a global function with example usage: _build_base64_frame_src(html_str) and returns: str