code: def test_run(image, module, workspace):
      module.skeleton_name.value = "example"
  
      module.run(workspace)
  
      branches = workspace.measurements.get_current_measurement(
          "Image", "Skeleton_Branches_example"
      )
  
      endpoints = workspace.measurements.get_current_measurement(
          "Image", "Skeleton_Endpoints_example"
      )
  
      if image.volumetric:
          expected_branches = 7
  
          expected_endpoints = 6
      else:
          expected_branches = 5
  
          expected_endpoints = 4
  
      assert branches == expected_branches
  
      assert endpoints == expected_endpoints
  
file_path: CellProfiler/tests/frontend/modules/test_measureimageskeleton.py
imports: import numpy
  import pytest
  import cellprofiler_core.measurement
  from cellprofiler_core.constants.measurement import COLTYPE_INTEGER
  import cellprofiler.modules.measureimageskeleton
label_desc: Use image node_id 11 for calling a global function with example usage: test_run(image, module, workspace) without return types