code: def test_constituency_parsing(self):
      predictor = demo_model(*DEFAULT_MODELS["constituency-parsing"])
  
      sentence = """Pierre Vinken died aged 81; immortalised aged 61."""
  
      result = predictor.predict_json({"sentence": sentence})
  
      assert result["tokens"] == [
          "Pierre",
          "Vinken",
          "died",
          "aged",
          "81",
          ";",
          "immortalised",
          "aged",
          "61",
          ".",
      ]
      assert (
          result["trees"]
          == "(S (NP (NNP Pierre) (NNP Vinken)) (VP (VP (VBD died) (NP (JJ aged) (CD 81))) (, ;) (VP (VBD immortalised) (S (ADJP (VBN aged) (NP (CD 61)))))) (. .))"
      )
  
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 6 for calling the SniffTest obj's underlying member method code with example usage: obj.test_constituency_parsing() without return types