code: def test_from_numpy_exception():
      np_array = _np.array([[1, 2], [3, 4], [5, 6]], dtype="float32")
      mx_array = mx.npx.from_numpy(np_array)
      with pytest.raises(ValueError):
          np_array[2, 1] = 0
  
      mx_array[2, 1] = 100
      mx.test_utils.assert_almost_equal(np_array, mx_array.asnumpy())
      np_array = _np.array([[1, 2], [3, 4], [5, 6]]).transpose()
      assert not np_array.flags["C_CONTIGUOUS"]
      with pytest.raises(ValueError):
          mx_array = mx.nd.from_numpy(np_array)
  
      np_array = _np.array([[1, 2], [3, 4], [5, 6]], dtype="float32")
      mx_array = mx.npx.from_numpy(np_array, zero_copy=False)
      np_array[2, 1] = 0
  
imports: from __future__ import absolute_import
  from __future__ import division
  import itertools
  import os
  import pytest
  import operator
  import numpy
  import mxnet
  from mxnet import np, npx, autograd
  from mxnet.gluon import HybridBlock
  from mxnet.test_utils import same, assert_almost_equal, rand_shape_nd, rand_ndarray, use_np
  from common import retry, TemporaryDirectory, xfail_when_nonstandard_decimal_separator
  from mxnet.test_utils import verify_generator, gen_buckets_probs_with_ppf, assert_exception, is_op_runnable, collapse_sum_like
  from mxnet.ndarray.ndarray import py_slice
  from mxnet.base import integer_types
label_desc: Use image node_id 28 for calling a global function with example usage: test_from_numpy_exception() without return types