code: def to_d(x, sigma, denoised):
      return (x - denoised) / append_dims(sigma, x.ndim)
  
imports: import torch
  from scipy import integrate
  from ...util import append_dims
label_desc: Use image node_id 3 for calling a global function with example usage: to_d(x, sigma, denoised) and returns: unknown