code: def test_logging():
      """Test logging context manager"""
      ll = logger.level
      with use_log_level("warning", print_msg=False):
          assert_equal(logger.level, logging.WARN)
      assert_equal(logger.level, ll)
      with use_log_level("debug", print_msg=False):
          assert_equal(logger.level, logging.DEBUG)
      assert_equal(logger.level, ll)
  
imports: import logging
  from vispy.util import logger, use_log_level
  from vispy.testing import assert_in, assert_not_in, run_tests_if_main, assert_equal
label_desc: Use image node_id 1 for calling a global function with example usage: test_logging() without return types