code: def test_straighten_nothing():
      workspace, module = make_workspace(
          numpy.zeros((5, 2, 0)),
          numpy.zeros(0),
          numpy.zeros(5),
          numpy.zeros((20, 10)),
      )
      module.run(workspace)
  
      image = workspace.image_set.get_image(STRAIGHTENED_IMAGE_NAME)
      # TODO: This test is failing due to a chance in ndimage.map_coordinates as of scipy v1.1
      # TODO: Previously the map_coordinates call on line 542 of straightenworms would return
      # TODO: an all False array - as of v1.1 it is returning an all True array. I don't know
      # TODO: enough about map_coordinates to know what it should be doing here or why, so I'll
      # TODO: need to come back to this and see what needs to be changed for this to be resolved
      # assertFalse(np.any(image.mask))
      objectset = workspace.object_set
      assert isinstance(objectset, cellprofiler_core.object.ObjectSet)
      labels = objectset.get_objects(
          STRAIGHTENED_OBJECTS_NAME
      ).segmented
      assert numpy.all(labels == 0)
      m = workspace.measurements
      assert isinstance(m, cellprofiler_core.measurement.Measurements)
      assert (
          m.get_current_image_measurement(
              "_".join((C_COUNT, STRAIGHTENED_OBJECTS_NAME))
          )
          == 0
      )
      assert (
          len(
              m.get_current_measurement(
                  STRAIGHTENED_OBJECTS_NAME,
                  M_LOCATION_CENTER_X,
              )
          )
          == 0
      )
      assert (
          len(
              m.get_current_measurement(
                  STRAIGHTENED_OBJECTS_NAME,
                  M_LOCATION_CENTER_Y,
              )
          )
          == 0
      )
  
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 5 for calling a global function with example usage: test_straighten_nothing() without return types