code: def get_num_output_nodes2(self, input_instance):
      if self.model_type == ModelTypes.Regressor:
          raise SystemException(
              "Number of output nodes not supported for regression"
          )
      return self.get_output(input_instance).shape[1]
  
file_path: DiCE/dice_ml/model_interfaces/base_model.py
imports: import pickle
  import numpy
  from dice_ml.constants import ModelTypes
  from dice_ml.utils.exception import SystemException
  from dice_ml.utils.helpers import DataTransfomer
label_desc: Use image node_id 6 for calling the BaseModel obj's underlying member method code with example usage: obj.get_num_output_nodes2(input_instance) and returns: self