code: def test_debug_mode():
      import sys
      import logging
      import pytest
  
      handler = debug_mode(
          log_filename=sys.stderr, log_level="INFO", native_debug=False
      )
      root = logging.getLogger("interpret")
      root.removeHandler(handler)
  
      with pytest.raises(
          Exception,
          match="Cannot call debug_mode more than once in the same session.",
      ):
          debug_mode()
  
imports: from interpret.develop import print_debug_info, debug_info
  from interpret.develop import register_log, debug_mode
label_desc: Use image node_id 1 for calling a global function with example usage: test_debug_mode() without return types