def METHOD_NAME() -> Generator[None, None, None]:
    # We need to reconstruct our default handler to properly capture stderr.
    logging._reset_library_root_logger()
    logging.enable_default_handler()
    logging.set_verbosity(logging.INFO)
    logging.enable_propagation()
    yield
    # After testing, restore default propagation setting.
    logging.disable_propagation()