code: def register_plot(self, plot):
      def export_callback(attr, old, new):
          # really, export the doc as JSON
          self.content = None
          html = file_html(plot, CDN, "Task Stream")
          self.content = html
  
      self.on_change("event", export_callback)
  
file_path: distributed/distributed/dashboard/export_tool.py
imports: from __future__ import annotations
  import os
  from bokeh.core.properties import Int, String
  from bokeh.embed import file_html
  from bokeh.models import Tool
  from bokeh.resources import CDN
  from bokeh.util.compiler import JavaScript
label_desc: Use image node_id 1 for calling the ExportTool obj's underlying member method code with example usage: obj.register_plot(plot) without return types