code: def interpolate_with_weights(
      vector1: type_alias.TensorLike,
      vector2: type_alias.TensorLike,
      weight1: Union[type_alias.Float, type_alias.TensorLike],
      weight2: Union[type_alias.Float, type_alias.TensorLike],
      name: str = "interpolate_with_weights",
  ) -> tf.Tensor:
      """Interpolates vectors by taking their weighted sum.
  
      Interpolation for all variants of slerp is a simple weighted sum over inputs.
      Therefore this function simply returns weight1 * vector1 + weight2 * vector2.
  
      Note:
        In the following, A1 to An are optional batch dimensions.
  
      Args:
        vector1: A tensor of shape `[A1, ... , An, M]`, which stores a normalized
          vector in its last dimension.
        vector2: A tensor of shape `[A1, ... , An, M]`, which stores a normalized
          vector in its last dimension.
        weight1: A `float` or a tensor describing weights for the `vector1` and with
          a shape broadcastable to the shape of the input vectors.
        weight2: A `float` or a tensor describing weights for the `vector2` and with
          a shape broadcastable to the shape of the input vectors.
        name: A name for this op. Defaults to "interpolate_with_weights".
  
      Returns:
        A tensor of shape `[A1, ... , An, M]` containing the result of the
        interpolation.
      """
      with tf.name_scope(name):
          return weight1 * vector1 + weight2 * vector2
  
file_path: graphics/tensorflow_graphics/math/interpolation/slerp.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import enum
  from typing import Optional, Tuple, Union
  import tensorflow
  from tensorflow_graphics.math import vector
  from tensorflow_graphics.util import asserts
  from tensorflow_graphics.util import export_api
  from tensorflow_graphics.util import safe_ops
  from tensorflow_graphics.util import shape
  from tensorflow_graphics.util import type_alias
label_desc: Use image node_id 3 for calling a global function with example usage: interpolate_with_weights(vector1, vector2, weight1, weight2, name) and returns: unknown