class_docstr: A DisplayPublisher that stores
class_docstr_tok: ["A","DisplayPublisher","that","stores"]
code: def publish(self, data, metadata=None, source=None, **kwargs):
      # These are kwargs only on Python 3, not used there.
      # For consistency and avoid code divergence we leave them here to
      # simplify potential backport
      transient = kwargs.pop("transient", None)
      update = kwargs.pop("update", False)
  
      self.outputs.append(
          {
              "data": data,
              "metadata": metadata,
              "transient": transient,
              "update": update,
          }
      )
  
file_path: catboost/contrib/python/ipython/py2/IPython/core/displaypub.py
imports: from __future__ import print_function
  import sys
  from traitlets.config.configurable import Configurable
  from traitlets import List
  from .display import publish_display_data
label_desc: Use image node_id 1 for calling the CapturingDisplayPublisher obj's underlying member method code with example usage: obj.publish(data, metadata, source) without return types