code: def test_arraymap_update():
      in_values = np.unique(np.random.randint(0, 200, size=5))
      out_values = np.random.random(len(in_values))
      m = ArrayMap(in_values, out_values)
      image = np.random.randint(1, len(m), size=(512, 512))
      assert np.all(m[image] < 1)  # missing values map to 0.
      m[1:] += 1
      assert np.all(m[image] >= 1)
  
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 5 for calling a global function with example usage: test_arraymap_update() without return types