code: def assert_exception(func, exception):
      try:
          func()
      except exception:
          return
      except Exception as ex:
          raise ExpectationFailed(exception, ex)
      else:
          raise ExpectationFailed(exception, "no exception")
  
imports: import sys
  import os
  from metaflow.exception import MetaflowException
  from metaflow import current
  from metaflow.cards import get_cards
  from metaflow.plugins.cards.exception import CardNotPresentException
label_desc: Use image node_id 11 for calling a global function with example usage: assert_exception(func, exception) without return types