class_docstr: Defines the ErrorReport, which contains the tree and matrix filter.
  
  :param tree: The representation of the tree.
  :type tree: dict
  :param matrix: The representation of the matrix filter.
  :type matrix: dict
  :param id: The unique identifier for the ErrorReport.
      A new unique id is created if none is specified.
  :type id: str
class_docstr_tok: ["Defines","the","ErrorReport",",","which","contains","the","tree","and","matrix","filter",".",":","param","tree",":","The","representation","of","the","tree",".",":","type","tree",":","dict",":","param","matrix",":","The","representation","of","the","matrix","filter",".",":","type","matrix",":","dict",":","param","id",":","The","unique","identifier","for","the","ErrorReport",".","A","new","unique","id","is","created","if","none","is","specified",".",":","type","id",":","str"]
docstr: Returns the dictionary representation of the Error Report.
  
  The dictionary contains the representation of the tree,
  the matrix filter and any Error Report metadata.
  
  :return: The dictionary representation of the Error Report.
  :rtype: dict
docstr_tok: ["Returns","the","dictionary","representation","of","the","Error","Report",".","The","dictionary","contains","the","representation","of","the","tree",",","the","matrix","filter","and","any","Error","Report","metadata",".",":","return",":","The","dictionary","representation","of","the","Error","Report",".",":","rtype",":","dict"]
code: def __dict__(self):
      """Returns the dictionary representation of the Error Report.
  
      The dictionary contains the representation of the tree,
      the matrix filter and any Error Report metadata.
  
      :return: The dictionary representation of the Error Report.
      :rtype: dict
      """
      error_report_dict = {
          TREE: self._tree,
          MATRIX: self._matrix,
          TREE_FEATURES: self._tree_features,
          MATRIX_FEATURES: self._matrix_features,
          ID: self._id,
          METADATA: self._metadata,
      }
      if self._importances is not None:
          error_report_dict[IMPORTANCES] = self._importances
      if self._root_stats is not None:
          error_report_dict[ROOT_STATS] = self._root_stats
      return error_report_dict
  
file_path: responsible-ai-toolbox/erroranalysis/erroranalysis/report/error_report.py
imports: import json
  import uuid
  from raiutils.data_processing import serialize_json_safe
label_desc: Use image node_id 2 for calling the ErrorReport obj's underlying member method code with example usage: obj.__dict__() and returns: error_report_dict