code: def tearDown(self):
      super(WikiTablesMmlSemanticParserTest, self).tearDown()
      # We don't want to leave generated files around just from running tests...
      if self.should_remove_sempre_abbreviations and os.path.exists(
          SEMPRE_ABBREVIATIONS_PATH
      ):
          os.remove(SEMPRE_ABBREVIATIONS_PATH)
      if self.should_remove_sempre_grammar and os.path.exists(
          SEMPRE_GRAMMAR_PATH
      ):
          os.remove(SEMPRE_GRAMMAR_PATH)
      if (
          self.should_remove_root_sempre_abbreviations
          and os.path.exists(self.module_root_abbreviations_path)
      ):
          os.remove(self.module_root_abbreviations_path)
      if self.should_remove_root_sempre_grammar and os.path.exists(
          self.module_root_grammar_path
      ):
          os.remove(self.module_root_grammar_path)
  
imports: from __future__ import division
  from __future__ import absolute_import
  from collections import namedtuple
  import os
  import pytest
  from flaky import flaky
  from numpy.testing import assert_almost_equal
  import torch
  from allennlp.common import Params
  from allennlp.common.testing import ModelTestCase
  from allennlp.models import Model, WikiTablesMmlSemanticParser
  from allennlp.training.metrics.wikitables_accuracy import SEMPRE_ABBREVIATIONS_PATH, SEMPRE_GRAMMAR_PATH
label_desc: Use image node_id 2 for calling the WikiTablesMmlSemanticParserTest obj's underlying member method code with example usage: obj.tearDown() without return types