code: def test_one_worm():
      """Find a single worm"""
      image = numpy.zeros((20, 20), bool)
      index, count, i, j = centrosome.cpmorphology.get_line_pts(
          numpy.array([1, 6, 19, 14]),
          numpy.array([5, 0, 13, 18]),
          numpy.array([6, 19, 14, 1]),
          numpy.array([0, 13, 18, 5]),
      )
      image[i, j] = True
      image = scipy.ndimage.binary_fill_holes(image)
      workspace, module = make_workspace(image)
      module.worm_length.value = 12
      module.worm_width.value = 5
      module.angle_count.value = 16
      module.run(workspace)
      m = workspace.measurements
      assert isinstance(m, cellprofiler_core.measurement.Measurements)
      count = m.get_current_image_measurement(
          "_".join((C_COUNT, OBJECTS_NAME))
      )
      assert count == 1
      x = m.get_current_measurement(OBJECTS_NAME, M_LOCATION_CENTER_X)
      assert len(x) == 1
      assert round(abs(x[0] - 9.0), 1) == 0
      y = m.get_current_measurement(OBJECTS_NAME, M_LOCATION_CENTER_Y)
      assert len(y) == 1
      assert round(abs(y[0] - 10.0), 1) == 0
      a = m.get_current_measurement(
          OBJECTS_NAME, cellprofiler.modules.identifydeadworms.M_ANGLE
      )
      assert len(a) == 1
      assert round(abs(a[0] - 135), 0) == 0
  
imports: import centrosome.cpmorphology
  import numpy
  import scipy.ndimage
  import six.moves
  import cellprofiler_core.image
  import cellprofiler_core.measurement
  import cellprofiler_core.measurement
  from cellprofiler_core.constants.measurement import C_COUNT, M_LOCATION_CENTER_X, M_LOCATION_CENTER_Y, COLTYPE_INTEGER, COLTYPE_FLOAT, M_NUMBER_OBJECT_NUMBER, FF_COUNT
  import cellprofiler.modules.identifydeadworms
  import cellprofiler_core.object
  import cellprofiler_core.pipeline
  import cellprofiler_core.workspace
label_desc: Use image node_id 5 for calling a global function with example usage: test_one_worm() without return types