docstr: Calls func1 if rank == dst, otherwise calls func2.
docstr_tok: ["Calls","func1","if","rank","==","dst",",","otherwise","calls","func2","."]
code: def cond_call(
      self,
      func1: typing.Callable[[], TO1],
      func2: typing.Callable[[], TO2],
      dst,
  ) -> typing.Union[TO1, TO2]:
      """
      Calls func1 if rank == dst, otherwise calls func2.
      """
      if self.rank == dst:
          return func1()
      else:
          return func2() if func2 is not None else None
  
imports: import typing
  import warnings
  from typing import overload
  import torch
  from fate.arch.protocol import mpc
  import logging
label_desc: Use image node_id 25 for calling the MPC obj's underlying member method code with example usage: obj.cond_call(func1, func2, dst) and returns: func1, unknown