class_docstr: This is a decorator used to register publishers into the AlertPublisherRepository.
class_docstr_tok: ["This","is","a","decorator","used","to","register","publishers","into","the","AlertPublisherRepository","."]
code: def __new__(cls, class_or_function):
      AlertPublisherRepository.register_publisher(class_or_function)
  
      return class_or_function
  
imports: from abc import abstractmethod
  from copy import deepcopy
  from inspect import isclass
  from streamalert.shared.config import load_config
  from streamalert.shared.importer import import_folders
  from streamalert.shared.logger import get_logger
label_desc: Use image node_id 1 for calling the Register obj's underlying member method code with example usage: obj.__new__(cls, class_or_function) and returns: class_or_function