code: def test_get_agenda_for_sentence(self):
      world = self.worlds[0]
      agenda = world.get_agenda_for_sentence(
          "there is a tower with exactly two yellow blocks"
      )
      assert set(agenda) == set(
          ["c -> color_yellow", "<b,t> -> box_exists", "e -> 2"]
      )
      agenda = world.get_agenda_for_sentence(
          "There is at most one yellow item closely touching "
          "the bottom of a box."
      )
      assert set(agenda) == set(
          ["<o,o> -> yellow", "<o,o> -> touch_bottom", "e -> 1"]
      )
      agenda = world.get_agenda_for_sentence(
          "There is at most one yellow item closely touching "
          "the right wall of a box."
      )
      assert set(agenda) == set(
          ["<o,o> -> yellow", "<o,o> -> touch_right", "e -> 1"]
      )
      agenda = world.get_agenda_for_sentence(
          "There is at most one yellow item closely touching "
          "the left wall of a box."
      )
      assert set(agenda) == set(
          ["<o,o> -> yellow", "<o,o> -> touch_left", "e -> 1"]
      )
      agenda = world.get_agenda_for_sentence(
          "There is at most one yellow item closely touching "
          "a wall of a box."
      )
      assert set(agenda) == set(
          ["<o,o> -> yellow", "<o,o> -> touch_wall", "e -> 1"]
      )
      agenda = world.get_agenda_for_sentence(
          "There is exactly one square touching any edge"
      )
      assert set(agenda) == set(
          ["<o,o> -> square", "<o,o> -> touch_wall", "e -> 1"]
      )
      agenda = world.get_agenda_for_sentence(
          "There is exactly one square not touching any edge"
      )
      assert set(agenda) == set(
          [
              "<o,o> -> square",
              "<o,o> -> touch_wall",
              "e -> 1",
              "<<o,o>,<o,o>> -> negate_filter",
          ]
      )
      agenda = world.get_agenda_for_sentence(
          "There is only 1 tower with 1 blue block at the base"
      )
      assert set(agenda) == set(
          ["<o,o> -> blue", "e -> 1", "<o,o> -> bottom", "e -> 1"]
      )
      agenda = world.get_agenda_for_sentence(
          "There is only 1 tower that has 1 blue block at the top"
      )
      assert set(agenda) == set(
          [
              "<o,o> -> blue",
              "e -> 1",
              "<o,o> -> top",
              "e -> 1",
              "b -> all_boxes",
          ]
      )
      agenda = world.get_agenda_for_sentence(
          "There is exactly one square touching the blue " "triangle"
      )
      assert set(agenda) == set(
          [
              "<o,o> -> square",
              "<o,o> -> blue",
              "<o,o> -> triangle",
              "<o,o> -> touch_object",
              "e -> 1",
          ]
      )
  
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.semparse.worlds.world import ExecutionError
  from allennlp.semparse.worlds.nlvr_world import NlvrWorld
  from io import open
label_desc: Use image node_id 19 for calling the TestNlvrWorld obj's underlying member method code with example usage: obj.test_get_agenda_for_sentence() without return types