code: def test_ner(self):
      predictor = demo_model(
          *DEFAULT_MODELS["named-entity-recognition"]
      )
  
      sentence = """Michael Jordan is a professor at Berkeley."""
  
      result = predictor.predict_json({"sentence": sentence})
  
      assert result["words"] == [
          "Michael",
          "Jordan",
          "is",
          "a",
          "professor",
          "at",
          "Berkeley",
          ".",
      ]
      assert result["tags"] == [
          "B-PER",
          "L-PER",
          "O",
          "O",
          "O",
          "O",
          "U-LOC",
          "O",
      ]
  
file_path: magnitude/pymagnitude/third_party/allennlp/tests/models/sniff_test.py
imports: from __future__ import absolute_import
  from __future__ import print_function
  from allennlp.common.testing import AllenNlpTestCase
  from allennlp.models.archival import load_archive
  from allennlp.predictors import Predictor
label_desc: Use image node_id 5 for calling the SniffTest obj's underlying member method code with example usage: obj.test_ner() without return types