code: def test_add_codes():
      assert Errors.E001 == "[E001] error description"
      with pytest.raises(AttributeError):
          Errors.E002
      assert isclass(Errors.__class__)
  
imports: from inspect import isclass
  import pytest
  from spacy.errors import ErrorsWithCodes
label_desc: Use image node_id 1 for calling a global function with example usage: test_add_codes() without return types