code: def test_pipeline_stage_manager():
      spawn(run_dist, 4)
  
file_path: ColossalAI/tests/test_pipeline/test_stage_manager.py
imports: import pytest
  import torch.distributed
  import colossalai
  from colossalai.cluster import ProcessGroupMesh
  from colossalai.pipeline.stage_manager import PipelineStageManager
  from colossalai.testing import rerun_if_address_is_in_use, spawn
label_desc: Use image node_id 3 for calling a global function with example usage: test_pipeline_stage_manager() without return types