code: def randn_local(seed, shape):
      """Generate a tensor with random numbers from a normal distribution using seed.
  
      Does not change the global random number generator. You can only generate the seed's first tensor using this function.
      """
  
      if shared.opts.randn_source == "NV":
          rng = rng_philox.Generator(seed)
          return torch.asarray(rng.randn(shape), device=devices.device)
  
      local_device = (
          devices.cpu
          if shared.opts.randn_source == "CPU"
          or devices.device.type == "mps"
          else devices.device
      )
      local_generator = torch.Generator(local_device).manual_seed(
          int(seed)
      )
      return torch.randn(
          shape, device=local_device, generator=local_generator
      ).to(devices.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 a global function with example usage: randn_local(seed, shape) and returns: torch, torch