code: def _get_generators(self, device=None):
      if device is None:
          device = "cpu"
      device = torch.device(device)
      if device.type == "cuda":
          return self.generators_cuda
      else:
          return self.generators
  
imports: import logging
  import crypten
  import crypten.communicator
  import torch
  import torch.distributed
  from crypten.common.rng import generate_kbit_random_tensor, generate_random_ring_element
  from crypten.common.util import count_wraps
  from crypten.mpc.primitives import ArithmeticSharedTensor, BinarySharedTensor
  from .provider import TupleProvider
label_desc: Use image node_id 3 for calling the TTPServer obj's underlying member method code with example usage: obj._get_generators(device) and returns: self, self