code: def test_get_measurement_columns_wants_images_vertical():
      workspace, module = make_workspace(
          numpy.zeros((5, 2, 0)),
          numpy.zeros(0),
          numpy.zeros(5),
          numpy.zeros((20, 10)),
          auximage=numpy.zeros((20, 10)),
      )
      assert isinstance(
          module, cellprofiler.modules.straightenworms.StraightenWorms
      )
      module.wants_measurements.value = True
      module.number_of_segments.value = 5
      module.number_of_stripes.value = 1
  
      expected_columns = [
          (
              OBJECTS_NAME,
              "_".join(
                  (
                      cellprofiler.modules.straightenworms.C_WORM,
                      ftr,
                      image,
                      module.get_scale_name(None, segno),
                  )
              ),
              COLTYPE_FLOAT,
          )
          for ftr, image, segno in zip(
              [cellprofiler.modules.straightenworms.FTR_MEAN_INTENSITY]
              * 10
              + [cellprofiler.modules.straightenworms.FTR_STD_INTENSITY]
              * 10,
              (
                  [STRAIGHTENED_IMAGE_NAME] * 5
                  + [AUX_STRAIGHTENED_IMAGE_NAME] * 5
              )
              * 2,
              list(range(5)) * 4,
          )
      ]
  
      columns = module.get_measurement_columns(workspace.pipeline)
      columns = [
          column for column in columns if column[0] == OBJECTS_NAME
      ]
      for expected_column in expected_columns:
          assert any(
              [
                  all([x == y for x, y in zip(column, expected_column)])
                  for column in columns
              ]
          )
      for column in columns:
          assert any(
              [
                  all([x == y for x, y in zip(column, expected_column)])
                  for expected_column in expected_columns
              ]
          )
  
      categories = module.get_categories(
          workspace.pipeline, OBJECTS_NAME
      )
      assert cellprofiler.modules.straightenworms.C_WORM in categories
  
      features = module.get_measurements(
          workspace.pipeline,
          OBJECTS_NAME,
          cellprofiler.modules.straightenworms.C_WORM,
      )
      assert len(features) == 2
      assert (
          cellprofiler.modules.straightenworms.FTR_MEAN_INTENSITY
          in features
      )
      assert (
          cellprofiler.modules.straightenworms.FTR_STD_INTENSITY
          in features
      )
  
      for ftr in (
          cellprofiler.modules.straightenworms.FTR_MEAN_INTENSITY,
          cellprofiler.modules.straightenworms.FTR_STD_INTENSITY,
      ):
          images = module.get_measurement_images(
              workspace.pipeline,
              OBJECTS_NAME,
              cellprofiler.modules.straightenworms.C_WORM,
              ftr,
          )
          assert len(images) == 2
          assert STRAIGHTENED_IMAGE_NAME in images
          assert AUX_STRAIGHTENED_IMAGE_NAME in images
  
      for ftr, image in zip(
          [
              cellprofiler.modules.straightenworms.FTR_MEAN_INTENSITY,
              cellprofiler.modules.straightenworms.FTR_STD_INTENSITY,
          ]
          * 2,
          [STRAIGHTENED_IMAGE_NAME] * 2
          + [AUX_STRAIGHTENED_IMAGE_NAME] * 2,
      ):
          scales = module.get_measurement_scales(
              workspace.pipeline,
              OBJECTS_NAME,
              cellprofiler.modules.straightenworms.C_WORM,
              ftr,
              image,
          )
          assert len(scales) == 5
          for expected_scale in range(5):
              assert (
                  module.get_scale_name(None, expected_scale) in scales
              )
  
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 11 for calling a global function with example usage: test_get_measurement_columns_wants_images_vertical() without return types