code: def reset_logger(name, level=None, handler=None):
    
    # Make the logger and set its level.
    if level is None:
      level = logging.INFO
    logger = logging.getLogger(name)
    logger.setLevel(level)
  
    # Make the handler and attach it.
    handler = handler or logging.StreamHandler()
    handler.setFormatter(logging.Formatter(_DEFAULT_LOG_FORMAT))
  
    # We don't use ``.addHandler``, since this logger may have already been
    #   instantiated elsewhere with a different handler. It should only ever
    #   have one, not many.
    logger.handlers = [handler]
    return logger
docs: Make a standard python logger object with default formatter, handler, etc.
  
    Defaults are:
      - level == logging.INFO
      - handler == logging.StreamHandler()
  
    Args:
      name: a logger name.
      level: an optional initial log level for this logger.
      handler: an optional initial handler for this logger.
  
    Returns: a standard python logger with a single handler.