code: def test_block_add_hook_baseexception():
      # Raising BaseException will propagate out when adding a hook
      with assertRaises(BaseException):
          with TestHook(
              raise_on_events="sys.addaudithook", exc_type=BaseException
          ) as hook1:
              # Adding this next hook should raise BaseException
              with TestHook() as hook2:
                  pass
  
imports: import contextlib
  import os
  import sys
label_desc: Use image node_id 8 for calling a global function with example usage: test_block_add_hook_baseexception() without return types