code: def _default_vocabulary_tests(
      self, data: Optional[Iterable[Tuple]], num_test_cases: int = 100
  ):
      template = self.editor.template(
          (
              "{first_name1} is more {antonyms[0]} than {first_name2}",
              "{first_name2} is more {antonyms[1]} than {first_name1}",
          ),
          remove_duplicates=True,
          nsamples=num_test_cases,
      )
  
      test = MFT(
          **template,
          labels=self._entails,
          name='"A is more COMP than B" entails "B is more antonym(COMP) than A"',
          capability="Vocabulary",
          description="Eg. A is more active than B implies that B is more passive than A",
      )
  
      self.add_test(test)
  
      template = self.editor.template(
          [
              (
                  "All {nouns} are {synonyms[0]}.",
                  "Some {nouns} are {synonyms[0]}.",
              ),
              (
                  "All {nouns} are {synonyms[0]}.",
                  "Some {nouns} are {synonyms[1]}.",
              ),
          ],
          remove_duplicates=True,
          nsamples=num_test_cases,
      )
  
      _num_entails = len(template.data)
  
      template += self.editor.template(
          [
              (
                  "All {nouns} are {synonyms[0]}.",
                  "Some {nouns} are not {synonyms[0]}.",
              ),
              (
                  "All {nouns} are {synonyms[0]}.",
                  "Some {nouns} are not {synonyms[1]}.",
              ),
          ],
          remove_duplicates=True,
          nsamples=num_test_cases,
      )
  
      _num_contradicts = len(template.data) - _num_entails
  
      test = INV(
          template.data,
          labels=[self._entails for i in range(_num_entails)]
          + [self._contradicts for i in range(_num_contradicts)],
          name="Changing X to a synonym(X) should not change the label",
          capability="Vocabulary",
          description='"Eg. All tigers are huge -> All tigers are enormous" should not change the label',
      )
  
      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 9 for calling the TextualEntailmentSuite obj's underlying member method code with example usage: obj._default_vocabulary_tests(data, num_test_cases) without return types