code: def gauss_xminus1d(img, sigma, dim=2):
      r"""
      Applies a X-1D gauss to a copy of a XD image, slicing it along dim.
  
      Essentially uses `scipy.ndimage.gaussian_filter`, but
      applies it to a dimension less than the image has.
  
      Parameters
      ----------
      img : array_like
          The image to smooth.
      sigma : integer
          The sigma i.e. gaussian kernel size in pixel
      dim : integer
          The dimension along which to apply the filter.
  
      Returns
      -------
      gauss_xminus1d : ndarray
          The input image ``img`` smoothed by a gaussian kernel along dimension ``dim``.
      """
      img = numpy.array(img, copy=False)
      return xminus1d(img, gaussian_filter, dim, sigma=sigma)
  
imports: import numpy
  from scipy.ndimage import gaussian_filter
  from .utilities import xminus1d
label_desc: Use image node_id 1 for calling a global function with example usage: gauss_xminus1d(img, sigma, dim) and returns: xminus1d