class_docstr: A traited class that publishes display data to frontends.
  
  Instances of this class are created by the main IPython object and should
  be accessed there.
class_docstr_tok: ["A","traited","class","that","publishes","display","data","to","frontends",".","Instances","of","this","class","are","created","by","the","main","IPython","object","and","should","be","accessed","there","."]
docstr: Validate the display data.
  
  Parameters
  ----------
  data : dict
      The formata data dictionary.
  metadata : dict
      Any metadata for the data.
docstr_tok: ["Validate","the","display","data",".","Parameters","--","--","--","--","--","data",":","dict","The","formata","data","dictionary",".","metadata",":","dict","Any","metadata","for","the","data","."]
code: def _validate_data(self, data, metadata=None):
      """Validate the display data.
  
      Parameters
      ----------
      data : dict
          The formata data dictionary.
      metadata : dict
          Any metadata for the data.
      """
  
      if not isinstance(data, dict):
          raise TypeError("data must be a dict, got: %r" % data)
      if metadata is not None:
          if not isinstance(metadata, dict):
              raise TypeError("metadata must be a dict, got: %r" % data)
  
file_path: catboost/contrib/python/ipython/py3/IPython/core/displaypub.py
imports: import sys
  from traitlets.config.configurable import Configurable
  from traitlets import List
  from .display_functions import publish_display_data
label_desc: Use image node_id 2 for calling the DisplayPublisher obj's underlying member method code with example usage: obj._validate_data(data, metadata) without return types