code: def _next_seed_from_generator(_g):
      return torch.randint(
          1 - 2**63, 2**63 - 1, size=[], generator=_g
      ).item()
  
file_path: FATE/python/fate/arch/protocol/mpc/common/rng.py
imports: import torch
  from fate.arch.protocol import mpc
  from fate.arch.protocol.mpc.cuda import CUDALongTensor
  from fate.arch.tensor.distributed._tensor import _ShardingShapes, DTensor
label_desc: Use image node_id 1 for calling a global function with example usage: _next_seed_from_generator(_g) and returns: torch