code: def test_map_array_incorrect_output_shape():
      labels = np.random.randint(0, 5, size=(24, 25))
      out = np.empty((24, 24))
      in_values = np.unique(labels)
      out_values = np.random.random(in_values.shape).astype(out.dtype)
      with testing.raises(ValueError):
          map_array(labels, in_values, out_values, out=out)
  
file_path: scikit-image/skimage/util/tests/test_map_array.py
imports: import numpy
  import pytest
  from skimage.util._map_array import map_array, ArrayMap
  from skimage._shared import testing
label_desc: Use image node_id 2 for calling a global function with example usage: test_map_array_incorrect_output_shape() without return types