code: def test_logical_pg():
      spawn(check_layer, 4)
  
file_path: colossalai/tests/test_device/test_init_logical_pg.py
imports: import pytest
  import torch
  import torch.distributed
  from torch.distributed import ReduceOp
  from colossalai.device.device_mesh import DeviceMesh
  from colossalai.initialize import launch
  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: test_logical_pg() without return types