code: def test_categories():
      module = (
          cellprofiler.modules.measureobjectsizeshape.MeasureObjectAreaShape()
      )
      settings = ["SomeObjects", "OtherObjects", "Yes"]
      module.set_settings_from_values(
          settings, 1, module.module_class()
      )
      for object_name in settings[:-1]:
          categories = module.get_categories(None, object_name)
          assert len(categories) == 1
          assert categories[0] == "AreaShape"
      assert len(module.get_categories(None, "Bogus")) == 0
  
imports: import io
  import os
  import numpy
  import skimage.io
  import cellprofiler_core.image
  import cellprofiler_core.measurement
  import cellprofiler_core.modules.injectimage
  import cellprofiler.modules.measureobjectsizeshape
  import cellprofiler_core.object
  import cellprofiler_core.pipeline
  import cellprofiler_core.preferences
  import cellprofiler_core.workspace
  from cellprofiler_core.constants.measurement import COLTYPE_FLOAT
  import tests.frontend
  import tests.frontend.modules
label_desc: Use image node_id 5 for calling a global function with example usage: test_categories() without return types