code: def test_np_reshape_exception():
      a = mx.np.ones((10, 10))
      a.reshape((-1,)).asnumpy()  # Check no-raise
      pytest.raises(MXNetError, lambda: a.reshape((1,)))
      pytest.raises(MXNetError, lambda: mx.np.reshape(a, (1,)))
      pytest.raises(MXNetError, lambda: mx.np.reshape(a, (-1, 3)))
  
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 9 for calling a global function with example usage: test_np_reshape_exception() without return types