code: def test_get_numbers_from_tokens_works_for_ordinal_and_cardinal_numbers(
      self,
  ):
      tokens = [Token(x) for x in ["one", "five", "Seventh"]]
      numbers = TableQuestionKnowledgeGraph._get_numbers_from_tokens(
          tokens
      )
      assert numbers == [("1", "one"), ("5", "five"), ("7", "Seventh")]
  
imports: from __future__ import absolute_import
  from allennlp.common.testing import AllenNlpTestCase
  from allennlp.data import Token
  from allennlp.semparse.contexts import TableQuestionKnowledgeGraph
label_desc: Use image node_id 19 for calling the TestTableQuestionKnowledgeGraph obj's underlying member method code with example usage: obj.test_get_numbers_from_tokens_works_for_ordinal_and_cardinal_numbers() without return types