docstr: Split x into len(ranks) parts, each part is None except the part corresponding to the rank in ranks.
docstr_tok: ["Split","x","into","len","(","ranks",")","parts",",","each","part","is","None","except","the","part","corresponding","to","the","rank","in","ranks","."]
code: def split_variable(self, x, *ranks: typing.List[int]):
      """
      Split x into len(ranks) parts, each part is None except the part corresponding to the rank in ranks.
      """
      return (x if self.rank == rank else None for rank in ranks)
  
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 29 for calling the MPC obj's underlying member method code with example usage: obj.split_variable(x) and returns: unknown