class_docstr: The factory class for creating executors for inference
class_docstr_tok: ["The","factory","class","for","creating","executors","for","inference"]
code: def register(cls, name: str) -> Callable:
      def inner_wrapper(wrapped_class) -> Callable:
          if name in cls.registry:
              logger.warning(
                  "Executor %s already exists. Will replace it", name
              )
          cls.registry[name] = wrapped_class()
          return wrapped_class
  
      return inner_wrapper
  
imports: import enum
  import inspect
  import logging
  from abc import ABC, abstractmethod, abstractstaticmethod
  from pathlib import Path
  from typing import Callable, Dict, List, Optional, Tuple, Union
  import yaml
  from dgl.dataloading.negative_sampler import GlobalUniform, PerSourceUniform
  from numpydoc import docscrape
  from pydantic import create_model, create_model_from_typeddict, Field
  from typing_extensions import Literal
  from .base_model import DGLBaseModel
label_desc: Use image node_id 1 for calling the ApplyPipelineFactory obj's underlying member method code with example usage: obj.register(cls, name) and returns: inner_wrapper, wrapped_class