code: def test_get_action_sequence_removes_and_retains_var_correctly(self):
      world = self.wikitables_world
      logical_form = (
          "((reverse fb:row.row.league) (argmin (number 1) (number 1) "
          "(fb:type.object.type fb:type.row) "
          "(reverse (lambda x ((reverse fb:row.row.index) (var x))))))"
      )
      parsed_logical_form_without_var = world.parse_logical_form(
          logical_form
      )
      action_sequence_without_var = world.get_action_sequence(
          parsed_logical_form_without_var
      )
      assert "<#1,#1> -> var" not in action_sequence_without_var
  
      parsed_logical_form_with_var = world.parse_logical_form(
          logical_form, remove_var_function=False
      )
      action_sequence_with_var = world.get_action_sequence(
          parsed_logical_form_with_var
      )
      assert "<#1,#1> -> var" in action_sequence_with_var
  
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 5 for calling the TestWorld obj's underlying member method code with example usage: obj.test_get_action_sequence_removes_and_retains_var_correctly() without return types