code: def test_sorted_summary_importance_counterfactual_explanations(self):
      unsorted_summary_importance = {
          "age": 0.985,
          "workclass": 0.65,
          "education": 0.915,
          "occupation": 0.95,
          "hours_per_week": 0.985,
          "gender": 0.67,
          "marital_status": 0.655,
          "race": 0.41,
      }
  
      sorted_summary_importance = {
          "age": 0.985,
          "hours_per_week": 0.985,
          "occupation": 0.95,
          "education": 0.915,
          "gender": 0.67,
          "marital_status": 0.655,
          "workclass": 0.65,
          "race": 0.41,
      }
  
      counterfactual_explanations = CounterfactualExplanations(
          cf_examples_list=[],
          local_importance=None,
          summary_importance=unsorted_summary_importance,
      )
  
      assert (
          unsorted_summary_importance
          == counterfactual_explanations.summary_importance
      )
      assert (
          sorted_summary_importance
          == counterfactual_explanations.summary_importance
      )
  
      assert list(unsorted_summary_importance.keys()) != list(
          counterfactual_explanations.summary_importance.keys()
      )
      assert list(sorted_summary_importance.keys()) == list(
          counterfactual_explanations.summary_importance.keys()
      )
  
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 1 for calling the TestCounterfactualExplanations obj's underlying member method code with example usage: obj.test_sorted_summary_importance_counterfactual_explanations() without return types