code: def get_generator(generator, num_samples=0, seed=0):
      if generator == "dummy":
          return DummyGenerator()
      elif generator == "determ":
          return DeterministicGenerator(num_samples, seed)
      elif generator == "determ-indiv":
          return DeterministicIndividualGenerator(num_samples, seed)
      else:
          raise NotImplementedError
  
imports: import torch
  import torch.distributed
  from .None import dist_util
label_desc: Use image node_id 1 for calling a global function with example usage: get_generator(generator, num_samples, seed) and returns: DummyGenerator, DeterministicGenerator, DeterministicIndividualGenerator