code: def test_count_type_resolves_correctly(self):
      # Resolution should fail with basic type
      assert COUNT_TYPE.resolve(CELL_TYPE) is None
  
      # Resolution should fail when return type is not a number
      assert (
          COUNT_TYPE.resolve(ComplexType(CELL_TYPE, ROW_TYPE)) is None
      )
  
      # Resolution should resolve the return type to number
      assert COUNT_TYPE.resolve(
          ComplexType(CELL_TYPE, ANY_TYPE)
      ) == CountType(CELL_TYPE)
      assert COUNT_TYPE.resolve(
          ComplexType(ANY_TYPE, ANY_TYPE)
      ) == CountType(ANY_TYPE)
  
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 3 for calling the WikiTablesTypeDeclarationTest obj's underlying member method code with example usage: obj.test_count_type_resolves_correctly() without return types