code: def _default_coreference_tests(
      self, data: Optional[Iterable[Tuple]], num_test_cases: int = 100
  ):
      _quarter = num_test_cases // 4
  
      template = self.editor.template(
          (
              "{first_name1} and {first_name2} are friends. The former is {a:profession}.",
              "{first_name1} is {a:profession}.",
          ),
          remove_duplicates=True,
          nsamples=_quarter,
      )
  
      template += self.editor.template(
          (
              "{first_name1} and {first_name2} are friends. The latter is {a:profession}.",
              "{first_name2} is {a:profession}.",
          ),
          remove_duplicates=True,
          nsamples=_quarter,
      )
  
      _num_entails = len(template.data)
  
      template += self.editor.template(
          (
              "{first_name1} and {first_name2} are friends. The former is {a:profession}.",
              "{first_name2} is {a:profession}.",
          ),
          remove_duplicates=True,
          nsamples=_quarter,
      )
  
      template += self.editor.template(
          (
              "{first_name1} and {first_name2} are friends. The latter is {a:profession}.",
              "{first_name1} is {a:profession}.",
          ),
          remove_duplicates=True,
          nsamples=_quarter,
      )
  
      _num_neutral = len(template.data) - _num_entails
  
      test = MFT(
          **template,
          labels=[self._entails for i in range(_num_entails)]
          + [self._neutral for i in range(_num_neutral)],
          name="Former / Latter",
          capability="Coreference",
          description='Eg. "A and B are friends. The former is a teacher."'
          + ' entails "A is a teacher." (while "B is a teacher" is neutral).',
      )
  
      self.add_test(test)
  
imports: from typing import Optional, Tuple, Iterable, Callable, Union
  import itertools
  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.predictors import Predictor
label_desc: Use image node_id 11 for calling the TextualEntailmentSuite obj's underlying member method code with example usage: obj._default_coreference_tests(data, num_test_cases) without return types