code: def register_processor(name):
      def wrapper(Cls):
          if not issubclass(Cls, Processor):
              raise ProcessorRegisterException(Cls, Processor)
  
          NAME_TO_PROCESSOR_CLASS[name] = Cls
          PIPELINE_NAMES.append(name)
          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 1 for calling a global function with example usage: register_processor(name) and returns: wrapper, Cls