code: def check_error(desc, fn, *required_substrings):
      try:
          fn()
      except Exception as e:
          error_message = e.args[0]
          print("=" * 80)
          print(desc)
          print("-" * 80)
          print(error_message)
          print("")
          for sub in required_substrings:
              assert sub in error_message
          return
      raise AssertionError(
          f"given function ({desc}) didn't raise an error"
      )
  
label_desc: Use image node_id 1 for calling a global function with example usage: check_error(desc, fn) without return types