class_docstr: This suite was built using the checklist process with the self.editor
  suggestions. Users are encouraged to add/modify as they see fit.
  
  Note: `editor.suggest(...)` can be slow as it runs a language model.
class_docstr_tok: ["This","suite","was","built","using","the","checklist","process","with","the","self.editor","suggestions",".","Users","are","encouraged","to","add\/modify","as","they","see","fit",".","Note",":","`","editor.suggest","(","...",")","`","can","be","slow","as","it","runs","a","language","model","."]
docstr: Formatting function for printing failed test examples.
docstr_tok: ["Formatting","function","for","printing","failed","test","examples","."]
code: def _format_failing_examples(
      self,
      inputs: Tuple,
      pred: int,
      conf: Union[np.array, np.ndarray],
      label: Optional[int] = None,
      *args,
      **kwargs,
  ):
      """
      Formatting function for printing failed test examples.
      """
      labels = {self._positive: "Positive", self._negative: "Negative"}
      ret = str(inputs)
      if label is not None:
          ret += " (Original: %s)" % labels[label]
      ret += "\nPrediction: %s (Confidence: %.1f)" % (
          labels[pred],
          conf[pred],
      )
  
      return ret
  
imports: from typing import Optional, Iterable, List, Union, Tuple
  import numpy
  from checklist.test_suite import TestSuite
  from checklist.test_types import MFT, INV, DIR, Expect
  from checklist.perturb import Perturb
  from allennlp.confidence_checks.task_checklists.task_suite import TaskSuite
  from allennlp.confidence_checks.task_checklists import utils
  from allennlp.data.instance import Instance
  from allennlp.predictors import Predictor
label_desc: Use image node_id 3 for calling the SentimentAnalysisSuite obj's underlying member method code with example usage: obj._format_failing_examples(inputs, pred, conf, label) and returns: ret