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
          ), f"{func.__name__} did not raise {expected_exception.__name__}"
  
imports: import sys, os, logging, functools
  import multiprocessing
  import mxnet
  import numpy
  import random
  import shutil
  from mxnet.base import MXNetError
  from mxnet.test_utils import environment
  import models
  from contextlib import contextmanager
  import pytest
  from mxnet.util import TemporaryDirectory
  import locale
label_desc: Use image node_id 1 for calling a global function with example usage: assertRaises(expected_exception, func) without return types