code: def crypten_log(*args, level=logging.INFO, dst=0, **kwargs):
      """
      Logs a message to logger of parties whose rank is contained by `dst` kwarg (default: 0).
  
      Uses logging.INFO as default level.
      """
      if isinstance(dst, int):
          dst = [dst]
      assert isinstance(
          dst, (list, tuple)
      ), "log destination must be a list or tuple of party ranks"
      import crypten.communicator as comm
  
      if comm.get().get_rank() in dst:
          logging.log(level, *args, **kwargs)
  
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 3 for calling a global function with example usage: crypten_log() without return types