code: def test_reverse_resolves_correctly(self):
      assert REVERSE_TYPE.resolve(CELL_TYPE) is None
  
      # Resolving against <?,<e,r>> should give <<r,e>,<e,r>>
      resolution = REVERSE_TYPE.resolve(
          ComplexType(ANY_TYPE, ComplexType(CELL_TYPE, ROW_TYPE))
      )
      assert resolution == ReverseType(
          ComplexType(ROW_TYPE, CELL_TYPE),
          ComplexType(CELL_TYPE, ROW_TYPE),
      )
  
      # Resolving against <<r,?>,<e,?>> should give <<r,e>,<e,r>>
      resolution = REVERSE_TYPE.resolve(
          ComplexType(
              ComplexType(ROW_TYPE, ANY_TYPE),
              ComplexType(CELL_TYPE, ANY_TYPE),
          )
      )
      assert resolution == ReverseType(
          ComplexType(ROW_TYPE, CELL_TYPE),
          ComplexType(CELL_TYPE, ROW_TYPE),
      )
  
      # Resolving against <<r,?>,?> should give <<r,?>,<?,r>>
      resolution = REVERSE_TYPE.resolve(
          ComplexType(ComplexType(ROW_TYPE, ANY_TYPE), ANY_TYPE)
      )
      assert resolution == ReverseType(
          ComplexType(ROW_TYPE, ANY_TYPE),
          ComplexType(ANY_TYPE, ROW_TYPE),
      )
  
      # Resolving against <<r,?>,<?,e>> should give None
      resolution = REVERSE_TYPE.resolve(
          ComplexType(
              ComplexType(ROW_TYPE, ANY_TYPE),
              ComplexType(ANY_TYPE, CELL_TYPE),
          )
      )
      assert resolution is None
  
file_path: magnitude/pymagnitude/third_party/allennlp/tests/semparse/type_declarations/wikitables_type_declaration_test.py
imports: from __future__ import absolute_import
  from allennlp.common.testing import AllenNlpTestCase
  from allennlp.semparse.type_declarations import type_declaration
  from allennlp.semparse.type_declarations.type_declaration import ComplexType, ANY_TYPE
  from allennlp.semparse.type_declarations.wikitables_type_declaration import ARG_EXTREME_TYPE, ArgExtremeType, CELL_TYPE, CONJUNCTION_TYPE, COUNT_TYPE, CountType, ROW_TYPE, REVERSE_TYPE, ReverseType
label_desc: Use image node_id 1 for calling the WikiTablesTypeDeclarationTest obj's underlying member method code with example usage: obj.test_reverse_resolves_correctly() without return types