code: def gamma(
      x: TensorType, shape: TensorType, scale: TensorType
  ) -> tf.Tensor:
      return (
          -shape * tf.math.log(scale)
          - tf.math.lgamma(shape)
          + (shape - 1.0) * tf.math.log(x)
          - x / scale
      )
  
file_path: GPflow/gpflow/logdensities.py
imports: import numpy
  import tensorflow
  from check_shapes import check_shapes
  from .base import TensorType
  from .utilities import to_default_float
label_desc: Use image node_id 6 for calling a global function with example usage: gamma(x, shape, scale) and returns: unknown