code: def test_expand_image_array_cnn_2d_adds_dim_int():
      image_arr_2d = np.random.random((3, 3))
      ret_arr = expand_image_array_cnn(image_arr_2d)
      np.testing.assert_array_equal(image_arr_2d, ret_arr[..., 0])
      np.testing.assert_array_equal(ret_arr[..., 0], ret_arr[..., 1])
      np.testing.assert_array_equal(ret_arr[..., 1], ret_arr[..., 2])
  
imports: import pytest
  from pathlib import Path
  import numpy
  from PIL import Image
  from imagededup.utils.image_utils import preprocess_image, load_image, _check_3_dim, _add_third_dim, _raise_wrong_dim_value_error, check_image_array_hash, expand_image_array_cnn
label_desc: Use image node_id 12 for calling a global function with example usage: test_expand_image_array_cnn_2d_adds_dim_int() without return types