code: def test_one_object():
      labels = numpy.zeros((10, 10), int)
      labels[2:7, 3:8] = 1
      area_occupied = numpy.sum(labels)
      workspace = make_workspace(labels)
      module = workspace.module
      module.operand_choice.value = "Objects"
      module.run(workspace)
      m = workspace.measurements
  
      def mn(x):
          return "AreaOccupied_%s_%s" % (
              x,
              module.objects_list.value[0],
          )
  
      assert (
          m.get_current_measurement("Image", mn("AreaOccupied"))
          == area_occupied
      )
      assert m.get_current_measurement("Image", mn("TotalArea")) == 100
  
file_path: CellProfiler/tests/frontend/modules/test_measureimageareaoccupied.py
imports: import numpy
  import six
  import cellprofiler_core.image
  import cellprofiler_core.measurement
  from cellprofiler_core.constants.measurement import COLTYPE_FLOAT
  import cellprofiler.modules.measureimageareaoccupied
  import cellprofiler_core.object
  import cellprofiler_core.pipeline
  import cellprofiler_core.preferences
  import cellprofiler_core.workspace
  import tests.frontend.modules
label_desc: Use image node_id 3 for calling a global function with example usage: test_one_object() and returns: unknown