code: def test_bio_tags_to_spans_ignores_specified_tags(self):
      tag_sequence = [
          "B-V",
          "I-V",
          "O",
          "B-ARG1",
          "I-ARG1",
          "O",
          "B-ARG2",
          "I-ARG2",
          "B-ARG1",
          "B-ARG2",
      ]
      spans = span_utils.bio_tags_to_spans(tag_sequence, ["ARG1", "V"])
      assert set(spans) == set([("ARG2", (6, 7)), ("ARG2", (9, 9))])
  
file_path: magnitude/pymagnitude/third_party/allennlp/tests/data/dataset_readers/dataset_utils/span_utils_test.py
imports: from __future__ import with_statement
  from __future__ import absolute_import
  from allennlp.common.testing import AllenNlpTestCase
  from allennlp.data.dataset_readers.dataset_utils import span_utils
  from allennlp.data.tokenizers.word_tokenizer import SpacyWordSplitter
  from allennlp.data.tokenizers.token import Token
label_desc: Use image node_id 3 for calling the SpanUtilsTest obj's underlying member method code with example usage: obj.test_bio_tags_to_spans_ignores_specified_tags() without return types