code: def _check_indices(indices, indices_expected):
      assert len(indices) == len(indices_expected)
      for labels, labels_expected in zip(indices, indices_expected):
          np.testing.assert_array_equal(labels, labels_expected)
  
imports: import numpy
  import centrosome.outline
  import cellprofiler_library.functions.segmentation
  from cellprofiler_library.functions.segmentation import SPARSE_FIELD
label_desc: Use image node_id 1 for calling a global function with example usage: _check_indices(indices, indices_expected) without return types