code: def setUp(self):
      super(SpanBasedF1Test, self).setUp()
      vocab = Vocabulary()
      vocab.add_token_to_namespace("O", "tags")
      vocab.add_token_to_namespace("B-ARG1", "tags")
      vocab.add_token_to_namespace("I-ARG1", "tags")
      vocab.add_token_to_namespace("B-ARG2", "tags")
      vocab.add_token_to_namespace("I-ARG2", "tags")
      vocab.add_token_to_namespace("B-V", "tags")
      vocab.add_token_to_namespace("I-V", "tags")
      vocab.add_token_to_namespace("U-ARG1", "tags")
      vocab.add_token_to_namespace("U-ARG2", "tags")
      vocab.add_token_to_namespace("B-C-ARG1", "tags")
      vocab.add_token_to_namespace("I-C-ARG1", "tags")
      vocab.add_token_to_namespace("B-ARGM-ADJ", "tags")
      vocab.add_token_to_namespace("I-ARGM-ADJ", "tags")
  
      self.vocab = vocab
  
file_path: magnitude/pymagnitude/third_party/allennlp/tests/training/metrics/span_based_f1_measure_test.py
imports: from __future__ import division
  from __future__ import with_statement
  from __future__ import absolute_import
  import os
  import subprocess
  import torch
  import numpy
  from allennlp.common.testing import AllenNlpTestCase
  from allennlp.data import Vocabulary
  from allennlp.training.metrics import SpanBasedF1Measure, Metric
  from allennlp.models.semantic_role_labeler import write_to_conll_eval_file
  from allennlp.common.params import Params
  from io import open
label_desc: Use image node_id 1 for calling the SpanBasedF1Test obj's underlying member method code with example usage: obj.setUp() without return types