code: def run_dist(rank, world_size, port):
      colossalai.launch(
          config={},
          rank=rank,
          world_size=world_size,
          port=port,
          host="localhost",
      )
      check_stage_manager()
  
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 2 for calling a global function with example usage: run_dist(rank, world_size, port) without return types