code: def assert_equal_including_exceptions(expected_fn, actual_fn):
      try:
          expected = expected_fn()
      except Exception as e:
          with pytest.raises(e.__class__):
              actual_fn()
      else:
          assert expected == actual_fn()
  
imports: import pytest
  from allennlp.common.sequences import ConcatenatedSequence
label_desc: Use image node_id 1 for calling a global function with example usage: assert_equal_including_exceptions(expected_fn, actual_fn) without return types