code: def test_arraymap_bool_index():
      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(in_values), size=(512, 512))
      assert np.all(m[image] < 1)  # missing values map to 0.
      positive = np.ones(len(m), dtype=bool)
      positive[0] = False
      m[positive] += 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 6 for calling a global function with example usage: test_arraymap_bool_index() without return types