code: def test_opencv_exception():
      def check_resize():
          img = mx.nd.ones((1200, 1600, 3))
          img = mx.image.imresize(img, 320, 320, interp=-1)
          img.asnumpy()
  
      pytest.raises(MXNetError, check_resize)
  
file_path: mxnet/tests/python/unittest/test_exc_handling.py
imports: import os
  import mxnet
  import numpy
  from mxnet import gluon
  from mxnet.gluon import nn
  from mxnet.base import MXNetError
  from mxnet.test_utils import assert_exception, default_device, set_default_device, use_np
  import pytest
label_desc: Use image node_id 8 for calling a global function with example usage: test_opencv_exception() without return types