code: def find_console_handler(logger):
      
      for handler in logger.handlers:
          if (isinstance(handler, logging.StreamHandler) and
                  handler.stream == sys.stderr):
              return handler
docs: Return a stream handler, if it exists.