code: def slerp(a, b, t):
      a = normalize(a)
      b = normalize(b)
      d = tf.reduce_sum(a * b, axis=-1, keepdims=True)
      p = t * tf.math.acos(d)
      c = normalize(b - d * a)
      d = a * tf.math.cos(p) + c * tf.math.sin(p)
      return normalize(d)
  
file_path: insightface/reconstruction/ostec/external/stylegan2/metrics/perceptual_path_length.py
imports: import numpy
  import tensorflow
  import dnnlib.tflib
  from metrics import metric_base
  from training import misc
label_desc: Use image node_id 2 for calling a global function with example usage: slerp(a, b, t) and returns: normalize