code: def register_producer(cls, producer):
          
          log.info('@Registry.register_producer `{}`'
                   .format(producer.__class__.__name__))
          cls._producer = (cls._producer or producer)
docs: Register a default producer for events to use.
          :param producer: the default producer to to dispatch events on.