code: def run_dist(rank, world_size, port):
      colossalai.launch(
          config={},
          rank=rank,
          world_size=world_size,
          host="localhost",
          port=port,
          backend="nccl",
      )
      check_vocab_embedding_1d()
  
file_path: ColossalAI/tests/test_shardformer/test_layer/test_vocab_parallel_embedding_1d.py
imports: from contextlib import nullcontext
  import torch
  import torch.distributed
  import torch.nn
  from torch.testing import assert_close
  import colossalai
  from colossalai.lazy import LazyInitContext
  from colossalai.shardformer.layer import VocabParallelEmbedding1D
  from colossalai.testing import parameterize, 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