code: def run_test(rank, world_size, port):
      colossalai.legacy.launch(
          rank=rank,
          world_size=world_size,
          config=CONFIG,
          host="localhost",
          port=port,
      )
  
      # check_ring_qk(rank, world_size)
      check_ring_av(rank, world_size)
  
      gpc.destroy()
      torch.cuda.empty_cache()
  
file_path: ColossalAI/tests/test_legacy/test_layers/test_sequence/test_sequence.py
imports: import pytest
  import torch
  import torch.distributed
  import colossalai
  from colossalai.legacy.context import ParallelMode
  from colossalai.legacy.core import global_context
  from colossalai.legacy.nn.layer.parallel_sequence import RingAV, RingQK
  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: run_test(rank, world_size, port) without return types