code: def setUp(self):
      super(TestWorld, self).setUp()
      self.world_without_recursion = FakeWorldWithoutRecursion()
      self.world_with_recursion = FakeWorldWithRecursion()
  
      test_filename = (
          self.FIXTURES_ROOT
          / "data"
          / "nlvr"
          / "sample_ungrouped_data.jsonl"
      )
      data = [
          json.loads(line)["structured_rep"]
          for line in open(test_filename).readlines()
      ]
      self.nlvr_world = NlvrWorld(data[0])
  
      question_tokens = [
          Token(x)
          for x in ["what", "was", "the", "last", "year", "2004", "?"]
      ]
      table_file = (
          self.FIXTURES_ROOT
          / "data"
          / "wikitables"
          / "sample_table.tsv"
      )
      table_kg = TableQuestionKnowledgeGraph.read_from_file(
          table_file, question_tokens
      )
      self.wikitables_world = WikiTablesWorld(table_kg)
  
imports: from __future__ import with_statement
  from __future__ import division
  from __future__ import absolute_import
  import json
  from allennlp.common.testing import AllenNlpTestCase
  from allennlp.data.tokenizers import Token
  from allennlp.semparse import ParsingError, World
  from allennlp.semparse.contexts import TableQuestionKnowledgeGraph
  from allennlp.semparse.worlds import NlvrWorld, WikiTablesWorld
  from io import open
label_desc: Use image node_id 1 for calling the TestWorld obj's underlying member method code with example usage: obj.setUp() without return types