code: def _default_temporal_tests(
      self, data: Optional[Iterable[Tuple]], num_test_cases: int = 100
  ):
      template = self.editor.template(
          (
              "{first_name} works as {a:profession}",
              "{first_name} used to work as a {profession}",
          ),
          nsamples=num_test_cases,
          remove_duplicates=True,
      )
  
      template += self.editor.template(
          (
              "{first_name} {last_name} is {a:profession}",
              "{first_name} {last_name} was {a:profession}",
          ),
          nsamples=num_test_cases,
          remove_duplicates=True,
      )
  
      test = MFT(
          **template,
          labels=self._neutral,
          name='"A works as P" gives no information about "A used to work as P"',
          capability="Temporal",
          description='Eg. "A is a writer" gives no information about "A was a writer"',
      )
  
      self.add_test(test)
  
      template = self.editor.template(
          (
              "{first_name} was {a:profession1} before they were {a:profession2}",
              "{first_name} was {a:profession1} after they were {a:profession2}",
          ),
          nsamples=num_test_cases,
          remove_duplicates=True,
      )
  
      test = MFT(
          **template,
          labels=self._contradicts,
          name="Before != After",
          capability="Temporal",
          description='Eg. "A was a writer before they were a journalist" '
          'contradicts "A was a writer after they were a journalist"',
      )
  
      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 16 for calling the TextualEntailmentSuite obj's underlying member method code with example usage: obj._default_temporal_tests(data, num_test_cases) without return types