code: def run_dist(rank, world_size, port):
      # init dist env
      colossalai.launch(
          config=dict(),
          rank=rank,
          world_size=world_size,
          port=port,
          host="localhost",
      )
      check_dataloader_sharding()
  
imports: from typing import Callable, Iterator, List, Tuple, Union
  import torch
  import torch.distributed
  import torch.nn
  from torch.optim import Optimizer
  from torch.optim.lr_scheduler import _LRScheduler
  from torch.utils.data import DataLoader, TensorDataset
  import colossalai
  from colossalai.booster.plugin.dp_plugin_base import DPPluginBase
  from colossalai.checkpoint_io import CheckpointIO
  from colossalai.interface import OptimizerWrapper
  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: run_dist(rank, world_size, port) without return types