code: def test_summary_importance_output(
      self, desired_class, sample_custom_query_10, total_CFs, version
  ):
      counterfactual_explanations = self.exp.global_feature_importance(
          query_instances=sample_custom_query_10,
          desired_class=desired_class,
          total_CFs=total_CFs,
      )
  
      self.verify_counterfactual_explanations(
          counterfactual_explanations,
          total_CFs,
          sample_custom_query_10.shape[0],
          version,
          local_importance_available=True,
          summary_importance_available=True,
      )
  
      json_output = counterfactual_explanations.to_json()
      assert json_output is not None
      assert (
          json.loads(json_output).get("metadata").get("version")
          == version
      )
  
      recovered_counterfactual_explanations = (
          CounterfactualExplanations.from_json(json_output)
      )
      self.verify_counterfactual_explanations(
          counterfactual_explanations,
          total_CFs,
          sample_custom_query_10.shape[0],
          version,
          local_importance_available=True,
          summary_importance_available=True,
      )
  
      assert (
          recovered_counterfactual_explanations
          == counterfactual_explanations
      )
  
file_path: DiCE/tests/test_counterfactual_explanations.py
imports: import json
  import pytest
  from raiutils.exceptions import UserConfigValidationException
  from dice_ml.counterfactual_explanations import CounterfactualExplanations
label_desc: Use image node_id 5 for calling the TestSerializationCounterfactualExplanations obj's underlying member method code with example usage: obj.test_summary_importance_output(desired_class, sample_custom_query_10, total_CFs, version) without return types