code: def test_get_logical_form_handles_reverse(self):
      world = self.wikitables_world
      logical_form = "((reverse fb:row.row.year) (fb:row.row.league fb:cell.usl_a_league))"
      parsed_logical_form = world.parse_logical_form(logical_form)
      action_sequence = world.get_action_sequence(parsed_logical_form)
      reconstructed_logical_form = world.get_logical_form(
          action_sequence
      )
      parsed_reconstructed_logical_form = world.parse_logical_form(
          reconstructed_logical_form
      )
      assert parsed_logical_form == parsed_reconstructed_logical_form
  
      logical_form = (
          "((reverse fb:cell.cell.date) ((reverse fb:row.row.year) (argmax (number 1) "
          "(number 1) (fb:row.row.league fb:cell.usl_a_league) (reverse (lambda x "
          "((reverse fb:row.row.index) (var x)))))))"
      )
      parsed_logical_form = world.parse_logical_form(logical_form)
      action_sequence = world.get_action_sequence(parsed_logical_form)
      reconstructed_logical_form = world.get_logical_form(
          action_sequence
      )
      parsed_reconstructed_logical_form = world.parse_logical_form(
          reconstructed_logical_form
      )
      assert parsed_logical_form == parsed_reconstructed_logical_form
  
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 6 for calling the TestWorld obj's underlying member method code with example usage: obj.test_get_logical_form_handles_reverse() without return types