code: def test_dist_spec_mgr(world_size):
      spawn(run_dist, world_size)
  
file_path: ColossalAI/tests/test_legacy/test_tensor/core/test_dist_spec_mgr.py
imports: import math
  import pytest
  import torch
  import torch.distributed
  import colossalai
  from colossalai.legacy.tensor import DistSpecManager, ProcessGroup, ReplicaSpec, ShardSpec
  from colossalai.testing import rerun_if_address_is_in_use, spawn
label_desc: Use image node_id 4 for calling a global function with example usage: test_dist_spec_mgr(world_size) without return types