code: def test_register_nonprocessor_variant():
      with pytest.raises(ProcessorRegisterException):
  
          @register_processor_variant("tokenize", "nonvariant")
          class NonVariant:
              pass
  
imports: import pytest
  import stanza
  from stanza.models.common.doc import Document
  from stanza.pipeline.core import PipelineRequirementsException
  from stanza.pipeline.processor import Processor, ProcessorVariant, register_processor, register_processor_variant, ProcessorRegisterException
  from stanza.utils.conll import CoNLL
  from stanza.tests import *
label_desc: Use image node_id 5 for calling a global function with example usage: test_register_nonprocessor_variant() without return types