code: def check_alpha_beta(rank, world_size, port, physical_devices):
      disable_existing_loggers()
      launch(
          config={},
          rank=rank,
          world_size=world_size,
          host="localhost",
          port=port,
          backend="nccl",
      )
      profiler = AlphaBetaProfiler(physical_devices)
      best_logical_mesh = profiler.search_best_logical_mesh()
  
      if physical_devices == [0, 1, 2, 3]:
          assert best_logical_mesh == [[0, 1], [2, 3]]
      elif physical_devices == [0, 3]:
          assert best_logical_mesh == [[0, 3]]
  
imports: import pytest
  from colossalai.device import AlphaBetaProfiler
  from colossalai.initialize import launch
  from colossalai.logging import disable_existing_loggers
  from colossalai.testing import parameterize, rerun_if_address_is_in_use, spawn
label_desc: Use image node_id 1 for calling a global function with example usage: check_alpha_beta(rank, world_size, port, physical_devices) without return types