code: def register_processor_variant(name, variant):
      def wrapper(Cls):
          if not issubclass(Cls, ProcessorVariant):
              raise ProcessorRegisterException(Cls, ProcessorVariant)
  
          PROCESSOR_VARIANTS[name][variant] = Cls
          return Cls
  
      return wrapper
  
imports: from abc import ABC, abstractmethod
  from stanza.models.common.doc import Document
  from stanza.pipeline.registry import NAME_TO_PROCESSOR_CLASS, PIPELINE_NAMES, PROCESSOR_VARIANTS
label_desc: Use image node_id 2 for calling a global function with example usage: register_processor_variant(name, variant) and returns: wrapper, Cls