class_docstr: Represents the result of a classification goal function.
class_docstr_tok: ["Represents","the","result","of","a","classification","goal","function","."]
docstr: Takes a model output (like `1`) and returns the class labeled output
  (like `positive`), if possible.
  
  Also returns the associated color.
docstr_tok: ["Takes","a","model","output","(","like","`","1","`",")","and","returns","the","class","labeled","output","(","like","`","positive","`",")",",","if","possible",".","Also","returns","the","associated","color","."]
code: def _processed_output(self):
      """Takes a model output (like `1`) and returns the class labeled output
      (like `positive`), if possible.
  
      Also returns the associated color.
      """
      output_label = self.raw_output.argmax()
      if self.attacked_text.attack_attrs.get("label_names") is not None:
          output = self.attacked_text.attack_attrs["label_names"][
              self.output
          ]
          output = textattack.shared.utils.process_label_name(output)
          color = textattack.shared.utils.color_from_output(
              output, output_label
          )
          return output, color
      else:
          color = textattack.shared.utils.color_from_label(output_label)
          return output_label, color
  
file_path: TextAttack/textattack/goal_function_results/classification_goal_function_result.py
imports: import torch
  import textattack
  from textattack.shared import utils
  from .goal_function_result import GoalFunctionResult
label_desc: Use image node_id 2 for calling the ClassificationGoalFunctionResult obj's underlying member method code with example usage: obj._processed_output() and returns: output,  color, output_label,  color