code: def test_lemma_feature_extractor(self):
      # pylint: disable=protected-access
      utterance = self.tokenizer.tokenize("Names in English")
      field = KnowledgeGraphField(
          self.graph,
          self.utterance,
          self.token_indexers,
          self.tokenizer,
      )
      entity = "fb:row.row.name_in_english"
      lemma_feature = field._contains_lemma_match(
          entity,
          field._entity_text_map[entity],
          utterance[0],
          0,
          utterance,
      )
      assert lemma_feature == 1
  
imports: from __future__ import division
  from __future__ import with_statement
  from __future__ import absolute_import
  from collections import defaultdict
  import pytest
  from numpy.testing import assert_almost_equal
  import torch
  from allennlp.common.testing import AllenNlpTestCase
  from allennlp.data import Vocabulary
  from allennlp.data.fields import KnowledgeGraphField
  from allennlp.data.token_indexers import SingleIdTokenIndexer, TokenCharactersIndexer
  from allennlp.data.tokenizers import WordTokenizer
  from allennlp.data.tokenizers.word_splitter import SpacyWordSplitter
  from allennlp.semparse.contexts import TableQuestionKnowledgeGraph
label_desc: Use image node_id 7 for calling the KnowledgeGraphFieldTest obj's underlying member method code with example usage: obj.test_lemma_feature_extractor() without return types