code: def _test_exception(func, error, msg):
      try:
          func()
      except error:
          pass
      else:
          assert False, msg
  
file_path: ViZDoom/tests/test_make_action.py
imports: import numpy
  import vizdoom
label_desc: Use image node_id 2 for calling a global function with example usage: _test_exception(func, error, msg) without return types