code: def test_get_measurement_columns():
      workspace, module = make_workspace(
          numpy.zeros((5, 2, 0)),
          numpy.zeros(0),
          numpy.zeros(5),
          numpy.zeros((20, 10)),
      )
      assert isinstance(
          module, cellprofiler.modules.straightenworms.StraightenWorms
      )
      module.wants_measurements.value = False
      columns = module.get_measurement_columns(workspace.pipeline)
      for object_name, feature_name in (
          (
              "Image",
              "_".join((C_COUNT, STRAIGHTENED_OBJECTS_NAME)),
          ),
          (STRAIGHTENED_OBJECTS_NAME, M_LOCATION_CENTER_X),
          (STRAIGHTENED_OBJECTS_NAME, M_LOCATION_CENTER_Y),
          (
              STRAIGHTENED_OBJECTS_NAME,
              M_NUMBER_OBJECT_NUMBER,
          ),
      ):
          assert any(
              [
                  (o == object_name) and (f == feature_name)
                  for o, f, t in columns
              ]
          )
  
      categories = module.get_categories(workspace.pipeline, "Image")
      assert len(categories) == 1
      assert categories[0] == C_COUNT
  
      categories = module.get_categories(
          workspace.pipeline, STRAIGHTENED_OBJECTS_NAME
      )
      assert len(categories) == 2
      assert C_LOCATION in categories
      assert C_NUMBER in categories
  
      f = module.get_measurements(
          workspace.pipeline,
          "Image",
          C_COUNT,
      )
      assert len(f) == 1
      assert f[0] == STRAIGHTENED_OBJECTS_NAME
  
      f = module.get_measurements(
          workspace.pipeline,
          STRAIGHTENED_OBJECTS_NAME,
          C_NUMBER,
      )
      assert len(f) == 1
      assert f[0] == FTR_OBJECT_NUMBER
  
      f = module.get_measurements(
          workspace.pipeline,
          STRAIGHTENED_OBJECTS_NAME,
          C_LOCATION,
      )
      assert len(f) == 2
      assert FTR_CENTER_X in f
      assert FTR_CENTER_Y in f
  
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 10 for calling a global function with example usage: test_get_measurement_columns() without return types