code: def test_expand_image_array_cnn_wrong_dims_raises_error(
      chk_3_dim_mocker, raise_wrong_dim_value_error_mocker
  ):
      image_arr_4d = np.random.random((3, 3, 2, 5))
      expand_image_array_cnn(image_arr_4d)
      chk_3_dim_mocker.assert_not_called()
      raise_wrong_dim_value_error_mocker.assert_called_once_with(
          image_arr_4d.shape
      )
  
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 13 for calling a global function with example usage: test_expand_image_array_cnn_wrong_dims_raises_error(chk_3_dim_mocker, raise_wrong_dim_value_error_mocker) without return types