code: def from_json(
      json_dict: t.Union[str, t.Dict]
  ) -> t.Union[BaseCheckResult, SuiteResult]:
      """Convert a json object that was returned from one of our classes to_json.
  
      Parameters
      ----------
      json_data: Union[str, Dict]
          Json data
  
      Returns
      -------
      Union[BaseCheckResult, SuiteResult]
          A check output or a suite result object.
      """
      if isinstance(json_dict, str):
          json_dict = jsonpickle.loads(json_dict)
      json_type = json_dict["type"]
      if "Check" in json_type:
          return BaseCheckResult.from_json(json_dict)
      if json_type == "SuiteResult":
          return SuiteResult.from_json(json_dict)
      raise ValueError(
          "Excpected json object to be one of "
          "[CheckFailure, CheckResult, SuiteResult] but recievied: "
          + json_type
      )
  
imports: import typing
  import jsonpickle
  from deepchecks.core.check_result import BaseCheckResult
  from deepchecks.core.suite import SuiteResult
label_desc: Use image node_id 1 for calling a global function with example usage: from_json(json_dict) and returns: BaseCheckResult, SuiteResult