docstr: Calls func if rank == dst, otherwise returns None.
docstr_tok: ["Calls","func","if","rank","==","dst",",","otherwise","returns","None","."]
code: def option_call(
      self, func: typing.Callable[[], TO1], dst
  ) -> typing.Union[TO1, None]:
      """
      Calls func if rank == dst, otherwise returns None.
      """
      return func() if self.rank == dst 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 27 for calling the MPC obj's underlying member method code with example usage: obj.option_call(func, dst) and returns: unknown