class_docstr: Serializes any SuiteResult instance into JSON format.
  
  Parameters
  ----------
  value : SuiteResult
      SuiteResult instance that needed to be serialized.
docstr: Serialize a SuiteResult instance into JSON format.
  
  Parameters
  ----------
  with_display : bool, default True
      whether to include serialized `CheckResult.display` items into
      the output or not
  **kwargs :
      all other key-value arguments will be passed to the CheckResult/CheckFailure
      serializers
  
  Returns
  -------
  Union[Dict[Any, Any], List[Any]]
docstr_tok: ["Serialize","a","SuiteResult","instance","into","JSON","format",".","Parameters","--","--","--","--","--","with_display",":","bool",",","default","True","whether","to","include","serialized","`","CheckResult.display","`","items","into","the","output","or","not","*","*","kwargs",":","all","other","key-value","arguments","will","be","passed","to","the","CheckResult\/CheckFailure","serializers","Returns","--","--","--","-","Union","[","Dict","[","Any",",","Any","]",",","List","[","Any","]","]"]
code: def serialize(
      self, with_display: bool = True, **kwargs
  ) -> t.Union[t.Dict[t.Any, t.Any], t.List[t.Any]]:
      """Serialize a SuiteResult instance into JSON format.
  
      Parameters
      ----------
      with_display : bool, default True
          whether to include serialized `CheckResult.display` items into
          the output or not
      **kwargs :
          all other key-value arguments will be passed to the CheckResult/CheckFailure
          serializers
  
      Returns
      -------
      Union[Dict[Any, Any], List[Any]]
      """
      results = []
  
      for it in self.value.results:
          if isinstance(it, check_types.CheckResult):
              results.append(
                  CheckResultSerializer(it).serialize(
                      with_display=with_display
                  )
              )
          elif isinstance(it, check_types.CheckFailure):
              results.append(CheckFailureSerializer(it).serialize())
          else:
              raise TypeError(f"Unknown result type - {type(it)}")
  
      return {
          "name": self.value.name,
          "results": results,
          "type": "SuiteResult",
      }
  
file_path: deepchecks/deepchecks/core/serialization/suite_result/json.py
imports: import typing
  from deepchecks.core import check_result
  from deepchecks.core import suite
  from deepchecks.core.serialization.abc import JsonSerializer
  from deepchecks.core.serialization.check_failure.json import CheckFailureSerializer
  from deepchecks.core.serialization.check_result.json import CheckResultSerializer
label_desc: Use image node_id 2 for calling the SuiteResultSerializer obj's underlying member method code with example usage: obj.serialize(with_display) and returns: dict