docstr: Validate and set the outcome name.
docstr_tok: ["Validate","and","set","the","outcome","name","."]
code: def _validate_and_set_outcome_name(self, params):
      """Validate and set the outcome name."""
      if "outcome_name" not in params:
          raise ValueError("should provide the name of outcome feature")
  
      if isinstance(params["outcome_name"], str):
          self.outcome_name = params["outcome_name"]
      else:
          raise ValueError(
              "should provide the name of outcome feature as a string"
          )
  
file_path: DiCE/dice_ml/data_interfaces/base_data_interface.py
imports: from abc import ABC, abstractmethod
  import pandas
  from raiutils.exceptions import UserConfigValidationException
  from dice_ml.utils.exception import SystemException
label_desc: Use image node_id 2 for calling the _BaseData obj's underlying member method code with example usage: obj._validate_and_set_outcome_name(params) without return types