code: def test_get_measurements():
      """Test the get_measurements and allied methods"""
      module = cellprofiler.modules.flipandrotate.FlipAndRotate()
      module.output_name.value = OUTPUT_IMAGE
      columns = module.get_measurement_columns(None)
      assert len(columns) == 1
      assert columns[0][0] == "Image"
      assert (
          columns[0][1]
          == cellprofiler.modules.flipandrotate.M_ROTATION_F
          % OUTPUT_IMAGE
      )
      assert columns[0][2] == COLTYPE_FLOAT
  
      categories = module.get_categories(None, "Image")
      assert len(categories) == 1
      assert (
          categories[0]
          == cellprofiler.modules.flipandrotate.M_ROTATION_CATEGORY
      )
      assert len(module.get_categories(None, "Foo")) == 0
  
      measurements = module.get_measurements(
          None,
          "Image",
          cellprofiler.modules.flipandrotate.M_ROTATION_CATEGORY,
      )
      assert len(measurements) == 1
      assert measurements[0] == OUTPUT_IMAGE
      assert len(module.get_measurements(None, "Image", "Foo")) == 0
      assert (
          len(
              module.get_measurements(
                  None,
                  "Foo",
                  cellprofiler.modules.flipandrotate.M_ROTATION_CATEGORY,
              )
          )
          == 0
      )
  
file_path: CellProfiler/tests/frontend/modules/test_flipandrotate.py
imports: import centrosome.cpmorphology
  import numpy
  import cellprofiler_core.image
  import cellprofiler_core.measurement
  from cellprofiler_core.constants.measurement import COLTYPE_FLOAT
  import cellprofiler.modules.flipandrotate
  import cellprofiler_core.object
  import cellprofiler_core.pipeline
  import cellprofiler_core.workspace
label_desc: Use image node_id 8 for calling a global function with example usage: test_get_measurements() without return types