docstr: Asserts cond if rank == dst, otherwise returns None.
docstr_tok: ["Asserts","cond","if","rank","==","dst",",","otherwise","returns","None","."]
code: def option_assert(self, cond, message, dst):
      """
      Asserts cond if rank == dst, otherwise returns None.
      """
      if self.rank == dst:
          assert cond, f"rank:{dst} {message}"
  
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 28 for calling the MPC obj's underlying member method code with example usage: obj.option_assert(cond, message, dst) without return types