class_docstr: A class to store counterfactual examples for one or more inputs
  and feature importance scores.
  
  :param cf_examples_list: A list of CounterfactualExamples instances
  :param local_importance: List of estimated local importance scores. The
      size of the list is the number of input instances, each containing
      feature importance scores for that input.
  :param summary_importance: Estimated global feature importance scores
      based on the input set of CounterfactualExamples instances
code: def local_importance(self):
      if isinstance(self._local_importance, list):
          sorted_local_importance = []
          for local_importance_instance in self._local_importance:
              local_importance_instance = dict(
                  sorted(
                      local_importance_instance.items(),
                      key=lambda x: x[1],
                      reverse=True,
                  )
              )
              sorted_local_importance.append(local_importance_instance)
          self._local_importance = sorted_local_importance
      return self._local_importance
  
imports: import json
  import os
  import jsonschema
  from raiutils.exceptions import UserConfigValidationException
  from dice_ml.constants import _SchemaVersions
  from dice_ml.diverse_counterfactuals import CounterfactualExamples, _DiverseCFV2SchemaConstants
label_desc: Use image node_id 4 for calling the CounterfactualExplanations obj's underlying member method code with example usage: obj.local_importance() and returns: self