class_docstr: Serializes any CheckFailure instance into JSON format.
  
  Parameters
  ----------
  value : CheckFailure
      CheckFailure instance that needed to be serialized.
docstr: Serialize a CheckFailure instance into JSON format.
  
  Returns
  -------
  Dict[str, Any]
docstr_tok: ["Serialize","a","CheckFailure","instance","into","JSON","format",".","Returns","--","--","--","-","Dict","[","str",",","Any","]"]
code: def serialize(self, **kwargs) -> t.Dict[str, t.Any]:
      """Serialize a CheckFailure instance into JSON format.
  
      Returns
      -------
      Dict[str, Any]
      """
      return {
          "header": self.value.header,
          "type": "CheckFailure",
          "check": self.value.check.metadata(),
          "exception": str(self.value.exception),
      }
  
imports: import typing
  from deepchecks.core import check_result
  from deepchecks.core.serialization.abc import JsonSerializer
label_desc: Use image node_id 2 for calling the CheckFailureSerializer obj's underlying member method code with example usage: obj.serialize() and returns: dict