code: def test_sample_non_linear_control_points():
      module = cellprofiler.modules.untangleworms.UntangleWorms()
      path_coords = numpy.array([numpy.arange(11)] * 2).transpose()
      distances = numpy.sqrt(numpy.arange(11))
      result = module.sample_control_points(path_coords, distances, 6)
      assert numpy.all(
          result[:, 0] >= numpy.linspace(0.0, 1.0, 6) ** 2 * 10
      )
      assert numpy.all(
          result[:, 0] < numpy.linspace(0.0, 1.0, 6) ** 2 * 10 + 0.5
      )
  
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 25 for calling a global function with example usage: test_sample_non_linear_control_points() without return types