code: def linear_interpolate(p, x, y):
      """Elementwise linear-interpolation function.
  
      This function is defined as
  
      .. math::
  
          f(p, x, y) = p x + (1 - p) y.
  
      Args:
          p (:class:`~chainer.Variable` or :ref:`ndarray`): Input variable.
          x (:class:`~chainer.Variable` or :ref:`ndarray`): Input variable.
          y (:class:`~chainer.Variable` or :ref:`ndarray`): Input variable.
  
      Returns:
          ~chainer.Variable: Output variable.
  
      """
  
      return LinearInterpolate().apply((p, x, y))[0]
  
file_path: chainer/chainer/functions/math/linear_interpolate.py
imports: from chainer.backends import cuda
  from chainer import function_node
  from chainer import utils
  from chainer.utils import type_check
label_desc: Use image node_id 1 for calling a global function with example usage: linear_interpolate(p, x, y) and returns: LinearInterpolate