class_docstr: A goal function defined on a model that outputs text.
  
  model: The PyTorch or TensorFlow model used for evaluation.
  original_output: the original output of the model
docstr: Processes and validates a list of model outputs.
docstr_tok: ["Processes","and","validates","a","list","of","model","outputs","."]
code: def _process_model_outputs(self, _, outputs):
      """Processes and validates a list of model outputs."""
      if isinstance(outputs, np.ndarray):
          return outputs.flatten()
      else:
          return outputs
  
file_path: TextAttack/textattack/goal_functions/text/text_to_text_goal_function.py
imports: import numpy
  from textattack.goal_function_results import TextToTextGoalFunctionResult
  from textattack.goal_functions import GoalFunction
label_desc: Use image node_id 2 for calling the TextToTextGoalFunction obj's underlying member method code with example usage: obj._process_model_outputs(_, outputs) and returns: outputs, outputs