code: def test_semantic_role_labeling(self):
      predictor = demo_model(*DEFAULT_MODELS["semantic-role-labeling"])
  
      sentence = "If you liked the music we were playing last night, you will absolutely love what we're playing tomorrow!"
  
      result = predictor.predict_json({"sentence": sentence})
  
      assert result["words"] == [
          "If",
          "you",
          "liked",
          "the",
          "music",
          "we",
          "were",
          "playing",
          "last",
          "night",
          ",",
          "you",
          "will",
          "absolutely",
          "love",
          "what",
          "we",
          "'re",
          "playing",
          "tomorrow",
          "!",
      ]
  
      assert result["verbs"] == [
          {
              "verb": "liked",
              "description": "If [ARG0: you] [V: liked] [ARG1: the music we were playing last night] , you will absolutely love what we 're playing tomorrow !",
              "tags": [
                  "O",
                  "B-ARG0",
                  "B-V",
                  "B-ARG1",
                  "I-ARG1",
                  "I-ARG1",
                  "I-ARG1",
                  "I-ARG1",
                  "I-ARG1",
                  "I-ARG1",
                  "O",
                  "O",
                  "O",
                  "O",
                  "O",
                  "O",
                  "O",
                  "O",
                  "O",
                  "O",
                  "O",
              ],
          },
          {
              "verb": "were",
              "description": "If you liked the music we [V: were] playing last night , you will absolutely love what we 're playing tomorrow !",
              "tags": [
                  "O",
                  "O",
                  "O",
                  "O",
                  "O",
                  "O",
                  "B-V",
                  "O",
                  "O",
                  "O",
                  "O",
                  "O",
                  "O",
                  "O",
                  "O",
                  "O",
                  "O",
                  "O",
                  "O",
                  "O",
                  "O",
              ],
          },
          {
              "verb": "playing",
              "description": "If you liked [ARG1: the music] [ARG0: we] were [V: playing] [ARGM-TMP: last] night , you will absolutely love what we 're playing tomorrow !",
              "tags": [
                  "O",
                  "O",
                  "O",
                  "B-ARG1",
                  "I-ARG1",
                  "B-ARG0",
                  "O",
                  "B-V",
                  "B-ARGM-TMP",
                  "O",
                  "O",
                  "O",
                  "O",
                  "O",
                  "O",
                  "O",
                  "O",
                  "O",
                  "O",
                  "O",
                  "O",
              ],
          },
          {
              "verb": "will",
              "description": "If you liked the music we were playing last night , you [V: will] absolutely love what we 're playing tomorrow !",
              "tags": [
                  "O",
                  "O",
                  "O",
                  "O",
                  "O",
                  "O",
                  "O",
                  "O",
                  "O",
                  "O",
                  "O",
                  "O",
                  "B-V",
                  "O",
                  "O",
                  "O",
                  "O",
                  "O",
                  "O",
                  "O",
                  "O",
              ],
          },
          {
              "verb": "love",
              "description": "[ARGM-ADV: If you liked the music we were playing last night] , [ARG0: you] [ARGM-MOD: will] [ARGM-ADV: absolutely] [V: love] [ARG1: what we 're playing tomorrow] !",
              "tags": [
                  "B-ARGM-ADV",
                  "I-ARGM-ADV",
                  "I-ARGM-ADV",
                  "I-ARGM-ADV",
                  "I-ARGM-ADV",
                  "I-ARGM-ADV",
                  "I-ARGM-ADV",
                  "I-ARGM-ADV",
                  "I-ARGM-ADV",
                  "I-ARGM-ADV",
                  "O",
                  "B-ARG0",
                  "B-ARGM-MOD",
                  "B-ARGM-ADV",
                  "B-V",
                  "B-ARG1",
                  "I-ARG1",
                  "I-ARG1",
                  "I-ARG1",
                  "I-ARG1",
                  "O",
              ],
          },
          {
              "verb": "'re",
              "description": "If you liked the music we were playing last night , you will absolutely love what we [V: 're] playing tomorrow !",
              "tags": [
                  "O",
                  "O",
                  "O",
                  "O",
                  "O",
                  "O",
                  "O",
                  "O",
                  "O",
                  "O",
                  "O",
                  "O",
                  "O",
                  "O",
                  "O",
                  "O",
                  "O",
                  "B-V",
                  "O",
                  "O",
                  "O",
              ],
          },
          {
              "verb": "playing",
              "description": "If you liked the music we were playing last night , you will absolutely love [ARG1: what] [ARG0: we] 're [V: playing] [ARGM-TMP: tomorrow] !",
              "tags": [
                  "O",
                  "O",
                  "O",
                  "O",
                  "O",
                  "O",
                  "O",
                  "O",
                  "O",
                  "O",
                  "O",
                  "O",
                  "O",
                  "O",
                  "O",
                  "B-ARG1",
                  "B-ARG0",
                  "O",
                  "B-V",
                  "B-ARGM-TMP",
                  "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 2 for calling the SniffTest obj's underlying member method code with example usage: obj.test_semantic_role_labeling() without return types