code: def test_ensure_spacing_nD(ndim, size):
      coord = np.ones((5, ndim))
  
      expected = np.ones((1, ndim))
  
      assert np.array_equal(
          ensure_spacing(coord, min_split_size=size), expected
      )
  
file_path: scikit-image/skimage/_shared/tests/test_coord.py
imports: import time
  import numpy
  import pytest
  from scipy.spatial.distance import pdist, minkowski
  from skimage._shared.coord import ensure_spacing
label_desc: Use image node_id 2 for calling a global function with example usage: test_ensure_spacing_nD(ndim, size) without return types