code: def register_ensembler(name):
      def register_ensembler_cls(cls):
          if name in ENSEMBLE_DICT:
              raise ValueError(
                  "Cannot register duplicate ensembler ({})".format(
                      name
                  )
              )
          if not issubclass(cls, BaseEnsembler):
              raise ValueError(
                  "Model ({}: {}) must extend BaseEnsembler".format(
                      name, cls.__name__
                  )
              )
          ENSEMBLE_DICT[name] = cls
          return cls
  
      return register_ensembler_cls
  
imports: from .base import BaseEnsembler
  from .voting import Voting
  from .stacking import Stacking
label_desc: Use image node_id 1 for calling a global function with example usage: register_ensembler(name) and returns: register_ensembler_cls, cls