code: def _image_to_html_cell(
      img, width=128, height=128
  ):  # pragma: no cover
      # pylint: disable=import-outside-toplevel
      from towhee.utils.cv2_utils import cv2
      from towhee.utils.matplotlib_utils import plt
      import base64
      from io import BytesIO
  
      plt.ioff()
      fig = plt.figure(figsize=(width / 100, height / 100))
      img = cv2.resize(img, (width, height))
      fig.figimage(img, resize=True)
      plt.ion()
      tmpfile = BytesIO()
      fig.savefig(tmpfile, format="png")
      data = base64.b64encode(tmpfile.getvalue()).decode("ascii")
      src = 'src="data:image/png;base64,' + data + '" '
      w = 'width = "' + str(128) + 'px" '
      h = 'height = "' + str(128) + 'px" '
      style = 'style = "float:left; padding:2px"'
      return "<img " + src + w + h + style + ">"
  
file_path: towhee/towhee/utils/html_table.py
imports: import numpy
  from towhee.utils.thirdparty.ipython_utils import display, HTML
  from towhee.types import Image, VideoFrame, AudioFrame
label_desc: Use image node_id 2 for calling a global function with example usage: _image_to_html_cell(img, width, height) and returns: unknown