def METHOD_NAME(self):
    """Test setting up a logger with all valid levels, case insensitive."""
    logger = logging.getLogger(self.id())
    all_valid_log_levels = {
        "debug": logging.DEBUG,
        "iNFo": logging.INFO,
        "WARNING": logging.WARNING,
        "error": logging.ERROR,
        "CRITICAL": logging.CRITICAL,
    }
    for level_name, level_value in all_valid_log_levels.items():
        with self.subTest(level_name=level_name):
            with mock.patch.dict("os.environ", {QISKIT_IBM_RUNTIME_LOG_LEVEL: level_name}):
                setup_logger(logger)
                self.assertEqual(
                    logger.level,
                    level_value,
                    "The logger level was set to {}, but it should "
                    "be {}.".format(logger.level, level_value),
                )