class_docstr: Defines the CounterfactualManager for generating counterfactuals
  from a model.
class_docstr_tok: ["Defines","the","CounterfactualManager","for","generating","counterfactuals","from","a","model","."]
docstr: Get the schema for validating the counterfactual examples output.
code: def _get_counterfactual_schema(version):
      """Get the schema for validating the counterfactual examples output."""
      schema_directory = (
          Path(__file__).parent.parent
          / "_tools"
          / "counterfactual"
          / "dashboard_schemas"
      )
      schema_filename = (
          f"counterfactual_examples_output_v{version}.json"
      )
      schema_filepath = schema_directory / schema_filename
      with open(schema_filepath, "r") as f:
          return json.load(f)
  
imports: import json
  import uuid
  import warnings
  from pathlib import Path
  from typing import Any, List, Optional, Union
  import dice_ml
  import jsonschema
  import numpy
  import pandas
  from dice_ml import Dice
  from dice_ml.counterfactual_explanations import CounterfactualExplanations
  from dice_ml.explainer_interfaces.explainer_base import ExplainerBase
  from raiutils.exceptions import UserConfigValidationException
  from raiutils.models import ModelTask
  from responsibleai._config.base_config import BaseConfig
  from responsibleai._data_validations import validate_train_test_categories
  from responsibleai._interfaces import CounterfactualData
  from responsibleai._internal.constants import CounterfactualManagerKeys, FileFormats, ListProperties, ManagerNames
  from responsibleai._tools.shared.state_directory_management import DirectoryManager
  from responsibleai.exceptions import DuplicateManagerConfigException, SchemaErrorException
  from responsibleai.managers.base_manager import BaseManager
  from responsibleai.utils import _find_features_having_missing_values, _measure_time
label_desc: Use image node_id 8 for calling the CounterfactualManager obj's underlying member method code with example usage: obj._get_counterfactual_schema(version) and returns: json