code: def test_straighten_missing_worm():
      r = numpy.random.RandomState()
      r.seed(0)
      image = r.uniform(size=(60, 30))
      control_points = numpy.array(
          [
              [[21, numpy.nan, 10], [15, numpy.nan, 10]],
              [[23, numpy.nan, 13], [15, numpy.nan, 14]],
              [[25, numpy.nan, 16], [15, numpy.nan, 18]],
              [[27, numpy.nan, 19], [15, numpy.nan, 22]],
              [[29, numpy.nan, 22], [15, numpy.nan, 26]],
          ]
      )
      lengths = numpy.array([8, 0, 20])
      radii = numpy.array([1, 3, 5, 3, 1])
      workspace, module = make_workspace(
          control_points, lengths, radii, image
      )
      assert isinstance(
          module, cellprofiler.modules.straightenworms.StraightenWorms
      )
      module.width.value = 11
      module.run(workspace)
      image_set = workspace.image_set
      assert isinstance(image_set, cellprofiler_core.image.ImageSet)
      pixels = image_set.get_image(STRAIGHTENED_IMAGE_NAME).pixel_data
      assert pixels.shape[1] == 33
      assert pixels.shape[0] == 31
      numpy.testing.assert_almost_equal(
          pixels[0:19, 0:11], image[16:35, 10:21]
      )
      expected = image[
          control_points[:, 0, 2].astype(int),
          control_points[:, 1, 2].astype(int),
      ]
      samples = pixels[5:26:5, 27]
      numpy.testing.assert_almost_equal(expected, samples)
  
imports: import centrosome.cpmorphology
  import numpy
  import six.moves
  import cellprofiler_core.image
  import cellprofiler_core.measurement
  import cellprofiler_core.modules
  from cellprofiler_core.constants.measurement import C_COUNT, M_LOCATION_CENTER_X, M_LOCATION_CENTER_Y, M_NUMBER_OBJECT_NUMBER, C_LOCATION, C_NUMBER, FTR_CENTER_X, FTR_CENTER_Y, FTR_OBJECT_NUMBER, COLTYPE_FLOAT
  import cellprofiler.modules.straightenworms
  import cellprofiler_core.object
  import cellprofiler_core.pipeline
  import cellprofiler_core.setting
  import cellprofiler_core.workspace
  import cellprofiler_core.preferences
  import tests.frontend.modules
label_desc: Use image node_id 9 for calling a global function with example usage: test_straighten_missing_worm() without return types