code: def test_ndarray_arithmetic_unary_ops(seed, op, shape):
      rng = np.random.RandomState(seed)
      vx = nn.NdArray.from_numpy_array(
          rng.randn(*shape).astype(np.float32)
      )
      vz = eval("{0} vx".format(op))
      ref_z = eval("{0} vx.data".format(op))
      assert_allclose(ref_z, vz.data)
  
file_path: nnabla/python/test/test_ndarray_arithmetic_ops.py
imports: from six import exec_
  import pytest
  import numpy
  import nnabla
  from nnabla.testing import assert_allclose
label_desc: Use image node_id 4 for calling a global function with example usage: test_ndarray_arithmetic_unary_ops(seed, op, shape) without return types