code: def test_cast_array_uint16():
      assert_array_equal(
          cast_array(AUX, np.dtype("uint16")),
          [0, 0, 0, 2, 3, 19, 100, 258, 258, 259, 2**16 - 1],
      )
  
imports: import numpy
  from nibabel.affines import apply_affine
  from numpy.testing import assert_array_almost_equal, assert_array_equal
  from ....core.api import Image, vox2mni
  from ....core.image.image_spaces import as_xyz_image, xyz_affine
  from ..affine import Affine
  from ..resample import cast_array, resample
  from ..transform import Transform
label_desc: Use image node_id 5 for calling a global function with example usage: test_cast_array_uint16() without return types