code: def _gaussian_weight(array, sigma_squared, *, dtype=float):
      """Helping function. Define a Gaussian weighting from array and
      sigma_square.
  
      Parameters
      ----------
      array : ndarray
          Input array.
      sigma_squared : float
          The squared standard deviation used in the filter.
      dtype : data type object, optional (default : float)
          The type and size of the data to be returned.
  
      Returns
      -------
      gaussian : ndarray
          The input array filtered by the Gaussian.
      """
      return np.exp(-0.5 * (array**2 / sigma_squared), dtype=dtype)
  
imports: import functools
  from math import ceil
  import numbers
  import scipy.stats
  import numpy
  from ..util.dtype import img_as_float
  from .._shared import utils
  from .._shared.utils import _supported_float_type, warn
  from ._denoise_cy import _denoise_bilateral, _denoise_tv_bregman
  from ..None import color
  from ..color.colorconv import ycbcr_from_rgb
label_desc: Use image node_id 1 for calling a global function with example usage: _gaussian_weight(array, sigma_squared) and returns: np