code: def test_ArrayLikeObj():
      obj = ArrayLikeObj()
      # create simple coordmap
      xform = np.eye(4)
      coordmap = AffineTransform.from_params("xyz", "ijk", xform)
      # create image form array-like object and coordmap
      img = image.Image(obj, coordmap)
      assert img.ndim == 3
      assert img.shape == (2, 3, 4)
      assert_array_almost_equal(img.get_fdata(), 1)
      # Test that the array stays with the image, so we can assign the array
      # in-place, at least in this case
      img.get_fdata()[:] = 4
      assert_array_equal(img.get_fdata(), 4)
  
imports: import warnings
  from itertools import chain
  import nibabel
  import numpy
  import pytest
  from numpy.testing import assert_almost_equal, assert_array_almost_equal, assert_array_equal
  from ...api import data_generator, parcels, write_data
  from ...reference.coordinate_map import AffineTransform, AxisError
  from ...reference.coordinate_system import CoordinateSystem
  from ..None import image
  from ..image import Image, is_image, iter_axis, rollimg
label_desc: Use image node_id 14 for calling a global function with example usage: test_ArrayLikeObj() without return types