code: def first(self):
      noise_shape = (
          self.shape
          if self.seed_resize_from_h <= 0
          or self.seed_resize_from_w <= 0
          else (
              self.shape[0],
              int(self.seed_resize_from_h) // 8,
              int(self.seed_resize_from_w // 8),
          )
      )
  
      xs = []
  
      for i, (seed, generator) in enumerate(
          zip(self.seeds, self.generators)
      ):
          subnoise = None
          if self.subseeds is not None and self.subseed_strength != 0:
              subseed = (
                  0 if i >= len(self.subseeds) else self.subseeds[i]
              )
              subnoise = randn(subseed, noise_shape)
  
          if noise_shape != self.shape:
              noise = randn(seed, noise_shape)
          else:
              noise = randn(seed, self.shape, generator=generator)
  
          if subnoise is not None:
              noise = slerp(self.subseed_strength, noise, subnoise)
  
          if noise_shape != self.shape:
              x = randn(seed, self.shape, generator=generator)
              dx = (self.shape[2] - noise_shape[2]) // 2
              dy = (self.shape[1] - noise_shape[1]) // 2
              w = noise_shape[2] if dx >= 0 else noise_shape[2] + 2 * dx
              h = noise_shape[1] if dy >= 0 else noise_shape[1] + 2 * dy
              tx = 0 if dx < 0 else dx
              ty = 0 if dy < 0 else dy
              dx = max(-dx, 0)
              dy = max(-dy, 0)
  
              x[:, ty : ty + h, tx : tx + w] = noise[
                  :, dy : dy + h, dx : dx + w
              ]
              noise = x
  
          xs.append(noise)
  
      eta_noise_seed_delta = shared.opts.eta_noise_seed_delta or 0
      if eta_noise_seed_delta:
          self.generators = [
              create_generator(seed + eta_noise_seed_delta)
              for seed in self.seeds
          ]
  
      return torch.stack(xs).to(shared.device)
  
file_path: stable-diffusion-webui/modules/rng.py
imports: import torch
  from modules import devices, rng_philox, shared
label_desc: Use image node_id 2 for calling the ImageRNG obj's underlying member method code with example usage: obj.first() and returns: torch