code: def noise_like(shape, device, repeat=False):
      repeat_noise = lambda: torch.randn(
          (1, *shape[1:]), device=device
      ).repeat(shape[0], *((1,) * (len(shape) - 1)))
      noise = lambda: torch.randn(shape, device=device)
      return repeat_noise() if repeat else noise()
  
imports: import math
  import numpy
  import torch
  import torch.nn
  from einops import repeat
  from ldm.util import instantiate_from_config
label_desc: Use image node_id 15 for calling a global function with example usage: noise_like(shape, device, repeat) and returns: unknown