code: def _get_gaussian_kernel(sigma, filter_shape):
      """Compute 1D Gaussian kernel."""
      sigma = tf.convert_to_tensor(sigma)
      x = tf.range(-filter_shape // 2 + 1, filter_shape // 2 + 1)
      x = tf.cast(x**2, sigma.dtype)
      x = tf.nn.softmax(-x / (2.0 * (sigma**2)))
      return x
  
file_path: addons/tensorflow_addons/image/filters.py
imports: import tensorflow
  from tensorflow_addons.image import utils
  from tensorflow_addons.utils import keras_utils
  from tensorflow_addons.utils.types import TensorLike
  from typing import Optional, Union, List, Tuple, Iterable
label_desc: Use image node_id 4 for calling a global function with example usage: _get_gaussian_kernel(sigma, filter_shape) and returns: x