code: def test_label_types():
      nlp = Language()
      senter = nlp.add_pipe("senter")
      with pytest.raises(NotImplementedError):
          senter.add_label("A")
  
file_path: spacy/spacy/tests/pipeline/test_senter.py
imports: import pytest
  from numpy.testing import assert_equal
  from spacy import util
  from spacy.attrs import SENT_START
  from spacy.lang.en import English
  from spacy.language import Language
  from spacy.tests.util import make_tempdir
  from spacy.training import Example
label_desc: Use image node_id 1 for calling a global function with example usage: test_label_types() without return types