code: def test_coord_transform_trivial(affine_eye, rng):
      sform = affine_eye
      x = rng.random((10,))
      y = rng.random((10,))
      z = rng.random((10,))
  
      x_, y_, z_ = coord_transform(x, y, z, sform)
      assert_array_equal(x, x_)
      assert_array_equal(y, y_)
      assert_array_equal(z, z_)
  
      sform[:, -1] = 1
      x_, y_, z_ = coord_transform(x, y, z, sform)
      assert_array_equal(x + 1, x_)
      assert_array_equal(y + 1, y_)
      assert_array_equal(z + 1, z_)
  
      # Test the output in case of one item array
      x, y, z = x[:1], y[:1], z[:1]
      x_, y_, z_ = coord_transform(x, y, z, sform)
      assert_array_equal(x + 1, x_)
      assert_array_equal(y + 1, y_)
      assert_array_equal(z + 1, z_)
  
      # Test the output in case of simple items
      x, y, z = x[0], y[0], z[0]
      x_, y_, z_ = coord_transform(x, y, z, sform)
      assert_array_equal(x + 1, x_)
      assert_array_equal(y + 1, y_)
      assert_array_equal(z + 1, z_)
  
      # Test the outputs have the same shape as the inputs
      x = np.ones((3, 2, 4))
      y = np.ones((3, 2, 4))
      z = np.ones((3, 2, 4))
      x_, y_, z_ = coord_transform(x, y, z, sform)
      assert x.shape == x_.shape
  
imports: import copy
  import math
  import os
  from pathlib import Path
  import numpy
  import pytest
  from nibabel import Nifti1Header, Nifti1Image
  from nibabel.freesurfer import MGHImage
  from numpy.testing import assert_allclose, assert_almost_equal, assert_array_almost_equal, assert_array_equal, assert_equal
  from nilearn import _utils
  from nilearn._utils import testing
  from nilearn.conftest import _affine_eye, _rng
  from nilearn.image import get_data
  from nilearn.image.image import _pad_array, crop_img
  from nilearn.image.resampling import BoundingBoxError, coord_transform, from_matrix_vector, get_bounds, reorder_img, resample_img, resample_to_img
label_desc: Use image node_id 33 for calling a global function with example usage: test_coord_transform_trivial(affine_eye, rng) without return types