class_docstr: A targeted attack on classification models which attempts to maximize
  the score of the target label.
  
  Complete when the arget label is the predicted label.
class_docstr_tok: ["A","targeted","attack","on","classification","models","which","attempts","to","maximize","the","score","of","the","target","label",".","Complete","when","the","arget","label","is","the","predicted","label","."]
code: def _get_score(self, model_output, _):
      if self.target_class < 0 or self.target_class >= len(
          model_output
      ):
          raise ValueError(
              f"target class set to {self.target_class} with {len(model_output)} classes."
          )
      else:
          return model_output[self.target_class]
  
imports: from .classification_goal_function import ClassificationGoalFunction
label_desc: Use image node_id 3 for calling the TargetedClassification obj's underlying member method code with example usage: obj._get_score(model_output, _) and returns: model_output