def METHOD_NAME(self):
    # reset for the env var to take effect, next time some logger call is made
    transformers.utils.logging._reset_library_root_logger()
    logger = logging.logging.getLogger()
    with CaptureLogger(logger) as cl:
        # this action activates the env var
        logging.get_logger("transformers.models.bart.tokenization_bart")
    self.assertIn("Unknown option TRANSFORMERS_VERBOSITY=super-error", cl.out)
    # no need to restore as nothing was changed