code: def _export_bokeh_figure(chart):
      from bokeh.embed import file_html
      from bokeh.resources import CDN
  
      html = file_html(chart, CDN)
      buffer = StringIO(html)
      buffer.seek(0)
      return buffer.getvalue()
  
imports: import base64
  import io
  import logging
  import pickle
  import warnings
  from io import BytesIO, StringIO
  from typing import Optional
  from packaging import version
  from pandas import DataFrame
  from neptune.exceptions import PlotlyIncompatibilityException
  from neptune.internal.utils.logger import logger
label_desc: Use image node_id 25 for calling a global function with example usage: _export_bokeh_figure(chart) and returns: buffer