code: def test_nd_array_data(value):
      shape = (2, 3)
  
      # Use default dtype (float32) in getter
      a = nn.NdArray(shape)
      with pytest.raises(Exception):
          _ = a.dtype
      _ = a.data
      assert a.dtype == np.float32
  
      # Use value dtype in setter
      a = nn.NdArray(shape)
      a.data = value
      if not np.isscalar(value) or (
          np.dtype(type(value)).kind != "f" and value > (1 << 53)
      ):
          assert a.dtype == np.asarray(value).dtype
          assert a.data.dtype == np.asarray(value).dtype
      else:
          assert a.data.dtype == np.float32
  
imports: import numpy
  import nnabla
  import pytest
  from nnabla.ext_utils import get_extension_context
  import nnabla.functions
label_desc: Use image node_id 3 for calling a global function with example usage: test_nd_array_data(value) without return types