code: def crypten_print(*args, dst=0, **kwargs):
      """
      Prints a message to only parties whose rank is contained by `dst` kwarg (default: 0).
      """
      if isinstance(dst, int):
          dst = [dst]
      assert isinstance(
          dst, (list, tuple)
      ), "print destination must be a list or tuple of party ranks"
      import crypten.communicator as comm
  
      if comm.get().get_rank() in dst:
          print(*args, **kwargs)
  
file_path: CrypTen/crypten/debug/debug.py
imports: import logging
  import pdb
  import sys
  from crypten.config import cfg
label_desc: Use image node_id 2 for calling a global function with example usage: crypten_print() without return types