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
docstr: Validate the dictionary version of the counterfactual explanations.
  
  :param cf_dict: Serialized version of the counterfactual explanations.
  :type cf_dict: Dict
docstr_tok: ["Validate","the","dictionary","version","of","the","counterfactual","explanations",".",":","param","cf_dict",":","Serialized","version","of","the","counterfactual","explanations",".",":","type","cf_dict",":","Dict"]
code: def _check_cf_exp_output_against_json_schema(cf_dict, version):
      """
      Validate the dictionary version of the counterfactual explanations.
  
      :param cf_dict: Serialized version of the counterfactual explanations.
      :type cf_dict: Dict
  
      """
      schema_file_name = "counterfactual_explanations_v{0}.json".format(
          version
      )
      schema_path = os.path.join(
          os.path.dirname(__file__), "schema", schema_file_name
      )
      with open(schema_path, "r") as schema_file:
          schema_json = json.load(schema_file)
  
      jsonschema.validate(cf_dict, schema_json)
  
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 9 for calling the CounterfactualExplanations obj's underlying member method code with example usage: obj._check_cf_exp_output_against_json_schema(cf_dict, version) without return types