code: def embedded_html(fig, resources="CDN"):
      """Returns an html string that contains all neccessary CSS&JS files,
      together with the div containing the Bokeh plot. As input, a figure fig
      is expected."""
  
      html_embedded = ""
      if resources == "CDN":
          js_css_resources = get_bokeh_resources()
          html_embedded += js_css_resources
      elif resources == "raw":
          raise NotImplementedError(
              "<resources> is not yet implemented"
          )
      elif resources is None:
          pass
      else:
          raise ValueError(
              "<resources> only accept 'CDN', 'raw' or None."
          )
  
      # Add plot script and div
      script, div = components(fig)
      html_embedded += "\n\n" + div + "\n\n" + script
  
      return html_embedded
  
file_path: Pandas-Bokeh/pandas_bokeh/base.py
imports: import bokeh.plotting
  from bokeh.embed import components
  from bokeh.layouts import gridplot
  from bokeh.resources import CDN
label_desc: Use image node_id 8 for calling a global function with example usage: embedded_html(fig, resources) and returns: html_embedded