code: def test_register_log():
      # Light smoke test.
      import logging
      import sys
      import os
      import tempfile
  
      # Output to stream
      handler = register_log(sys.stderr, "DEBUG")
      root = logging.getLogger("interpret")
      root.removeHandler(handler)
  
      # Output to file
      temp_log_path = os.path.join(tempfile.mkdtemp(), "test-log.txt")
      handler = register_log(temp_log_path, "DEBUG")
      handler.flush()
      handler.close()
      root = logging.getLogger("interpret")
      root.removeHandler(handler)
  
imports: from interpret.develop import print_debug_info, debug_info
  from interpret.develop import register_log, debug_mode
label_desc: Use image node_id 4 for calling a global function with example usage: test_register_log() without return types