code: def test_logger(self):
      # Verify log statements are properly captured
      # assertLogs() captures all log calls, ignoring the severity level
      with self.assertLogs(logger="botorch", level="INFO") as logs_cm:
          logger.info("Hello World!")
          logger.error("Goodbye Universe!")
      self.assertEqual(
          logs_cm.output,
          [
              "INFO:botorch:Hello World!",
              "ERROR:botorch:Goodbye Universe!",
          ],
      )
  
file_path: botorch/test/test_logging.py
imports: import logging
  import torch
  from botorch import settings
  from botorch.logging import LOG_LEVEL_DEFAULT, logger, shape_to_str
  from botorch.utils.testing import BotorchTestCase
label_desc: Use image node_id 1 for calling the TestLogging obj's underlying member method code with example usage: obj.test_logger() without return types