code: def affine_scalar_bijector(shift=None, scale=None):
      scale_bijector = (
          tfp.bijectors.Scale(scale)
          if scale
          else tfp.bijectors.Identity()
      )
      shift_bijector = (
          tfp.bijectors.Shift(shift)
          if shift
          else tfp.bijectors.Identity()
      )
      return shift_bijector(scale_bijector)
  
file_path: GPflow/notebooks/advanced/convolutional.pct.py
imports: import time
  import matplotlib.pyplot
  import numpy
  import tensorflow
  import tensorflow_probability
  import gpflow
  from gpflow import set_trainable
  from gpflow.ci_utils import is_continuous_integration
label_desc: Use image node_id 1 for calling a global function with example usage: affine_scalar_bijector(shift, scale) and returns: shift_bijector