code: def logger(level=None, handler=None, **kwds):
      """generate a logger instance for pathos
  
      Args:
          level (int, default=None): the logging level.
          handler (object, default=None): a ``logging`` handler instance.
          name (str, default='pathos'): name of the logger instance.
      Returns:
          configured logger instance.
      """
      import logging
  
      name = kwds.get("name", "pathos")
      log = logging.getLogger(name)
      if handler is not None:
          log.handlers = []
          log.addHandler(handler)
      elif not len(log.handlers):
          log.addHandler(logging.StreamHandler())
      if level is not None:
          log.setLevel(level)
      return log
  
file_path: pathos/pathos/__init__.py
imports: from .None import core
  from .None import hosts
  from .None import server
  from .None import selector
  from .None import connection
  from .None import pools
  from .None import maps
  from .None import serial
  from .None import parallel
  from .None import multiprocessing
  from .None import threading
  from .None import util
  from .None import helpers
  from pathos.secure import Pipe
  from pathos.secure import Copier
  from pathos.secure import Tunnel
label_desc: Use image node_id 1 for calling a global function with example usage: logger(level, handler) and returns: log