code: def send(data, dst):
      """
      Sends an arbitrary torch-serializable object to a destination node.
      This is a blocking send, equivalent to `torch.distributed.send`.
  
      Args:
          data: An arbitrary torch-serializable object to be sent.
          dst: The rank of the destination node.
      """
  
      # FIXME: we've got to get rid of this two-pass nonsense for dynamically sized
      # send and receive.
      t = _serialize(data)
      sizet = torch.LongTensor([t.nelement()])
      td.send(sizet, dst)
      td.send(t, dst)
  
file_path: PyTorch-BigGraph/torchbiggraph/rpc.py
imports: import io
  import sys
  import traceback
  import numpy
  import torch
  import torch.distributed
label_desc: Use image node_id 3 for calling a global function with example usage: send(data, dst) without return types