code: def randn_like(self, tensor, generator=None):
      tensor_format = getattr(self, "tensor_format", "pd")
      if tensor_format == "np":
          return np.random.randn(np.shape(tensor))
      elif tensor_format == "pd":
          # return paddle.randn_like(tensor)
          return paddle.randn(tensor.shape)
  
      raise ValueError(
          f"`self.tensor_format`: {self.tensor_format} is not valid."
      )
  
file_path: PaddleHub/modules/image/text_to_image/stable_diffusion/diffusers/schedulers/scheduling_utils.py
imports: from typing import Union
  import numpy
  import paddle
label_desc: Use image node_id 6 for calling the SchedulerMixin obj's underlying member method code with example usage: obj.randn_like(tensor, generator) and returns: np, paddle