code: def send_meta_helper(obj, next_rank, tensor_kwargs):
      send_shape = torch.tensor(obj.size(), **tensor_kwargs)
      send_ndims = torch.tensor(len(obj.size()), **tensor_kwargs)
      dist.send(send_ndims, next_rank)
      dist.send(send_shape, next_rank)
  
file_path: ColossalAI/colossalai/legacy/communication/utils.py
imports: from typing import List, Tuple, Union
  import torch
  import torch.distributed
  from colossalai.legacy.context.parallel_mode import ParallelMode
  from colossalai.legacy.core import global_context
  from colossalai.utils import get_current_device
label_desc: Use image node_id 1 for calling a global function with example usage: send_meta_helper(obj, next_rank, tensor_kwargs) without return types