class_docstr: Serializes any CheckResult instance into JSON format.
  
  Parameters
  ----------
  value : CheckResult
      CheckResult instance that needed to be serialized.
class_docstr_tok: ["Serializes","any","CheckResult","instance","into","JSON","format",".","Parameters","--","--","--","--","--","value",":","CheckResult","CheckResult","instance","that","needed","to","be","serialized","."]
docstr: Serialize a CheckResult instance into JSON format.
  
  Parameters
  ----------
  with_display : bool
      controls if to serialize display or not
  
  Returns
  -------
  CheckResultMetadata
docstr_tok: ["Serialize","a","CheckResult","instance","into","JSON","format",".","Parameters","--","--","--","--","--","with_display",":","bool","controls","if","to","serialize","display","or","not","Returns","--","--","--","-","CheckResultMetadata"]
code: def serialize(
      self, with_display: bool = True, **kwargs
  ) -> CheckResultMetadata:
      """Serialize a CheckResult instance into JSON format.
  
      Parameters
      ----------
      with_display : bool
          controls if to serialize display or not
  
      Returns
      -------
      CheckResultMetadata
      """
      display = self.prepare_display() if with_display else None
      return CheckResultMetadata(
          type="CheckResult",
          check=self.prepare_check_metadata(),
          header=self.value.get_header(),
          value=self.prepare_value(),
          conditions_results=self.prepare_condition_results(),
          display=display,
      )
  
imports: import base64
  import typing
  import pandas
  from pandas.io.formats.style import Styler
  from plotly.basedatatypes import BaseFigure
  from typing_extensions import TypedDict
  from deepchecks.core import check_result
  from deepchecks.core import checks
  from deepchecks.core.serialization.abc import ABCDisplayItemsHandler, JsonSerializer
  from deepchecks.core.serialization.common import aggregate_conditions, normalize_value
label_desc: Use image node_id 2 for calling the CheckResultSerializer obj's underlying member method code with example usage: obj.serialize(with_display) and returns: CheckResultMetadata