code: def test_only_two_sample_points():
      module = cellprofiler.modules.untangleworms.UntangleWorms()
      path_coords = numpy.array([[0, 0], [1, 2]])
      distances = numpy.array([0, 5])
      result = module.sample_control_points(path_coords, distances, 6)
      numpy.testing.assert_almost_equal(
          result[:, 0], numpy.linspace(0, 1, 6)
      )
      numpy.testing.assert_almost_equal(
          result[:, 1], numpy.linspace(0, 2, 6)
      )
  
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 26 for calling a global function with example usage: test_only_two_sample_points() without return types