code: def test_sample_control_points():
      module = cellprofiler.modules.untangleworms.UntangleWorms()
      path_coords = numpy.random.randint(0, 20, size=(11, 2))
      distances = numpy.linspace(0.0, 10.0, 11)
      result = module.sample_control_points(path_coords, distances, 6)
      assert len(result) == 6
      assert tuple(path_coords[0]) == tuple(result[0])
      assert tuple(path_coords[-1]) == tuple(result[-1])
      for i in range(1, 5):
          assert tuple(path_coords[i * 2]) == tuple(result[i])
  
imports: import base64
  import io
  import os
  import tempfile
  import zlib
  import imageio
  import centrosome.outline
  import numpy
  import scipy.ndimage
  import cellprofiler_core.image
  import cellprofiler_core.measurement
  import cellprofiler_core.modules
  import cellprofiler.modules.untangleworms
  import cellprofiler_core.object
  import cellprofiler_core.pipeline
  import cellprofiler_core.preferences
  import cellprofiler_core.setting
  import cellprofiler_core.workspace
  import tests.frontend.modules
label_desc: Use image node_id 24 for calling a global function with example usage: test_sample_control_points() without return types