code: def add_noise(self, original_samples, noise, timesteps):
      sqrt_alpha_prod = self.alphas_cumprod[timesteps] ** 0.5
      sqrt_alpha_prod = self.match_shape(
          sqrt_alpha_prod, original_samples
      )
      sqrt_one_minus_alpha_prod = (
          1 - self.alphas_cumprod[timesteps]
      ) ** 0.5
      sqrt_one_minus_alpha_prod = self.match_shape(
          sqrt_one_minus_alpha_prod, original_samples
      )
  
      noisy_samples = (
          sqrt_alpha_prod * original_samples
          + sqrt_one_minus_alpha_prod * noise
      )
      return noisy_samples
  
file_path: PaddleHub/modules/image/text_to_image/stable_diffusion/diffusers/schedulers/scheduling_pndm.py
imports: import math
  from typing import Union
  import numpy
  import paddle
  from ..configuration_utils import ConfigMixin
  from ..configuration_utils import register_to_config
  from .scheduling_utils import SchedulerMixin
label_desc: Use image node_id 7 for calling the PNDMScheduler obj's underlying member method code with example usage: obj.add_noise(original_samples, noise, timesteps) and returns: noisy_samples