code: def assertRaises(expected_exception, func, *args, **kwargs):
      try:
          func(*args, **kwargs)
      except expected_exception as e:
          pass
      else:
          # Did not raise exception
          assert False, "%s did not raise %s" % (
              func.__name__,
              expected_exception.__name__,
          )
  
file_path: gluon-cv/tests/unittests/common.py
imports: import sys, os, logging
  import mxnet
  import numpy
  import random
  import shutil
  from contextlib import contextmanager
  from nose.tools import make_decorator
  import tempfile
label_desc: Use image node_id 3 for calling a global function with example usage: assertRaises(expected_exception, func) without return types