code: def test_atis_local_actions(self):  # pylint: disable=no-self-use
      # Check if the triggers activate correcty
      world = AtisWorld(
          ["show me the flights from denver at 12 o'clock"]
      )
      assert set(world.valid_actions["number"]) == set(
          [
              'number -> ["0"]',
              'number -> ["1"]',
              'number -> ["1200"]',
              'number -> ["2400"]',
          ]
      )
  
      assert set(world.valid_actions["string"]) == set(
          [
              "string -> [\"'DENVER'\"]",
              "string -> [\"'DDEN'\"]",
              "string -> [\"'AT'\"]",
          ]
      )
  
      world = AtisWorld(
          [
              "show me the flights from denver at 12 o'clock",
              "show me the delta or united flights in afternoon",
          ]
      )
  
      assert set(world.valid_actions["number"]) == set(
          [
              'number -> ["0"]',
              'number -> ["1"]',
              'number -> ["1800"]',
              'number -> ["1200"]',
              'number -> ["2400"]',
          ]
      )
  
      assert set(world.valid_actions["string"]) == set(
          [
              "string -> [\"'DENVER'\"]",
              "string -> [\"'DDEN'\"]",
              "string -> [\"'AT'\"]",
              "string -> [\"'DL'\"]",
              "string -> [\"'UA'\"]",
              "string -> [\"'IN'\"]",
          ]
      )
  
      world = AtisWorld(
          [
              "i would like one coach reservation for \
                            may ninth from pittsburgh to atlanta leaving \
                            pittsburgh before 10 o'clock in morning 1991 \
                            august twenty sixth"
          ]
      )
  
      assert set(world.valid_actions["number"]) == set(
          [
              'number -> ["0"]',
              'number -> ["1"]',
              'number -> ["9"]',
              'number -> ["8"]',
              'number -> ["6"]',
              'number -> ["5"]',
              'number -> ["26"]',
              'number -> ["2200"]',
              'number -> ["1991"]',
              'number -> ["1200"]',
              'number -> ["1000"]',
          ]
      )
  
      assert set(world.valid_actions["string"]) == set(
          [
              "string -> [\"'COACH'\"]",
              "string -> [\"'PITTSBURGH'\"]",
              "string -> [\"'PIT'\"]",
              "string -> [\"'PPIT'\"]",
              "string -> [\"'ATLANTA'\"]",
              "string -> [\"'ATL'\"]",
              "string -> [\"'MATL'\"]",
              "string -> [\"'IN'\"]",
              "string -> [\"'MONDAY'\"]",
          ]
      )
  
file_path: magnitude/pymagnitude/third_party/allennlp/tests/semparse/worlds/atis_world_test.py
imports: from __future__ import division
  from __future__ import absolute_import
  import json
  from allennlp.common.testing import AllenNlpTestCase
  from allennlp.semparse.worlds.atis_world import AtisWorld
  from io import open
label_desc: Use image node_id 3 for calling the TestAtisWorld obj's underlying member method code with example usage: obj.test_atis_local_actions() without return types