code: def _send_state_dict(state_dict, dst, parallel_mode):
      (
          state_tensor,
          state_size,
      ) = dist.distributed_c10d._object_to_tensor(state_dict)
      dist.send(state_size, dst, group=gpc.get_cpu_group(parallel_mode))
      dist.send(
          state_tensor, dst, group=gpc.get_cpu_group(parallel_mode)
      )
  
file_path: ColossalAI/colossalai/legacy/utils/checkpointing.py
imports: from collections import OrderedDict
  from itertools import chain
  import torch
  import torch.distributed
  from colossalai.legacy.constants import IS_TENSOR_PARALLEL
  from colossalai.legacy.context.parallel_mode import ParallelMode
  from colossalai.legacy.core import global_context
  from .common import is_using_pp
label_desc: Use image node_id 4 for calling a global function with example usage: _send_state_dict(state_dict, dst, parallel_mode) without return types