code: def crypten_print_in_order(*args, **kwargs):
      """
      Calls print(*args, **kwargs) on each party in rank order to ensure each party
      can print its full message uninterrupted and the full output is deterministic
      """
      import crypten.communicator as comm
  
      for i in range(comm.get().get_world_size()):
          if comm.get().get_rank() == i:
              print(*args, **kwargs)
          comm.get().barrier()
  
file_path: FATE/python/fate/arch/protocol/mpc/debug/debug.py
imports: import logging
  import pdb
  import sys
  from fate.arch.protocol.mpc.config import cfg
label_desc: Use image node_id 4 for calling a global function with example usage: crypten_print_in_order() without return types