code: def install_mp_handler(logger=None):
      
      if logger is None:
          logger = logging.getLogger()
  
      for i, orig_handler in enumerate(list(logger.handlers)):
          handler = MultiProcessingHandler(
              'mp-handler-{0}'.format(i), sub_handler=orig_handler)
  
          logger.removeHandler(orig_handler)
          logger.addHandler(handler)
docs: Wraps the handlers in the given Logger with an MultiProcessingHandler.
  
      :param logger: whose handlers to wrap. By default, the root logger.