code: def publish_display_data(
      data, metadata=None, source=_sentinel, *, transient=None, **kwargs
  ):
      """Publish data and metadata to all frontends.
  
      See the ``display_data`` message in the messaging documentation for
      more details about this message type.
  
      Keys of data and metadata can be any mime-type.
  
      Parameters
      ----------
      data : dict
          A dictionary having keys that are valid MIME types (like
          'text/plain' or 'image/svg+xml') and values that are the data for
          that MIME type. The data itself must be a JSON'able data
          structure. Minimally all data should have the 'text/plain' data,
          which can be displayed by all frontends. If more than the plain
          text is given, it is up to the frontend to decide which
          representation to use.
      metadata : dict
          A dictionary for metadata related to the data. This can contain
          arbitrary key, value pairs that frontends can use to interpret
          the data. mime-type keys matching those in data can be used
          to specify metadata about particular representations.
      source : str, deprecated
          Unused.
      transient : dict, keyword-only
          A dictionary of transient data, such as display_id.
      """
      from IPython.core.interactiveshell import InteractiveShell
  
      if source is not _sentinel:
          warnings.warn(
              "The `source` parameter emit a  deprecation warning since"
              " IPython 8.0, it had no effects for a long time and will "
              " be removed in future versions.",
              DeprecationWarning,
              stacklevel=2,
          )
      display_pub = InteractiveShell.instance().display_pub
  
      # only pass transient if supplied,
      # to avoid errors with older ipykernel.
      # TODO: We could check for ipykernel version and provide a detailed upgrade message.
      if transient:
          kwargs["transient"] = transient
  
      display_pub.publish(data=data, metadata=metadata, **kwargs)
  
file_path: catboost/contrib/python/ipython/py3/IPython/core/display_functions.py
imports: from binascii import b2a_hex
  import os
  import sys
  import warnings
label_desc: Use image node_id 2 for calling a global function with example usage: publish_display_data(data, metadata, source) without return types