code: def test_supplied_measurements(module):
      """Test the get_category / get_measurements, get_measurement_images functions"""
      module.images_list.value = "MyImage"
  
      module.objects_list.value = "MyObjects1, MyObjects2"
  
      expected_categories = tuple(
          sorted(
              [
                  cellprofiler.modules.measureobjectintensity.INTENSITY,
                  C_LOCATION,
              ]
          )
      )
  
      assert (
          tuple(sorted(module.get_categories(None, "MyObjects1")))
          == expected_categories
      )
  
      assert module.get_categories(None, "Foo") == []
  
      measurements = module.get_measurements(
          None,
          "MyObjects1",
          cellprofiler.modules.measureobjectintensity.INTENSITY,
      )
  
      assert len(measurements) == len(
          cellprofiler.modules.measureobjectintensity.ALL_MEASUREMENTS
      )
  
      measurements = module.get_measurements(
          None, "MyObjects1", C_LOCATION
      )
  
      assert len(measurements) == len(
          cellprofiler.modules.measureobjectintensity.ALL_LOCATION_MEASUREMENTS
      )
  
      assert all(
          [
              m
              in cellprofiler.modules.measureobjectintensity.ALL_LOCATION_MEASUREMENTS
              for m in measurements
          ]
      )
  
      assert module.get_measurement_images(
          None,
          "MyObjects1",
          cellprofiler.modules.measureobjectintensity.INTENSITY,
          cellprofiler.modules.measureobjectintensity.MAX_INTENSITY,
      ) == ["MyImage"]
  
imports: import math
  import centrosome.outline
  import numpy
  import numpy.testing
  import pytest
  import skimage.measure
  import skimage.segmentation
  import cellprofiler_core.image
  import cellprofiler_core.measurement
  from cellprofiler_core.constants.measurement import EXPERIMENT, COLTYPE_FLOAT, C_LOCATION
  import cellprofiler.modules.measureobjectintensity
  import cellprofiler_core.object
  import cellprofiler_core.pipeline
  import cellprofiler_core.preferences
  import cellprofiler_core.workspace
label_desc: Use image node_id 8 for calling a global function with example usage: test_supplied_measurements(module) without return types