code: def squared_error(x0, x1):
      """Squared error function.
  
      This function computes the squared error between two variables:
  
      .. math::
  
          (x_0 - x_1)^2
  
      where operation is done in elementwise manner.
      Note that the error is not scaled by 1/2:
  
      Args:
          x0 (:class:`~chainer.Variable` or :ref:`ndarray`): Input variable.
          x1 (:class:`~chainer.Variable` or :ref:`ndarray`): Input variable.
  
      Returns:
          ~chainer.Variable:
              A variable holding an array representing the squared error of
              two inputs.
  
      .. note::
  
          :func:`~chainer.functions.squared_error` and
          :func:`~chainer.functions.squared_difference` are identical functions,
          aside from the different argument names.
          They are both kept for backward compatibility.
  
      .. seealso:: :func:`~chainer.functions.squared_difference`
  
      .. admonition:: Example
  
          >>> x1 = np.arange(6).astype(np.float32)
          >>> x1
          array([0., 1., 2., 3., 4., 5.], dtype=float32)
          >>> x2 = np.array([5, 4, 3, 2, 1, 0]).astype(np.float32)
          >>> x2
          array([5., 4., 3., 2., 1., 0.], dtype=float32)
          >>> y = F.squared_error(x1, x2)
          >>> y.shape
          (6,)
          >>> y.array
          array([25.,  9.,  1.,  1.,  9., 25.], dtype=float32)
  
      .. seealso:: :func:`~chainer.functions.squared_difference`
  
      """
      return SquaredError().apply((x0, x1))[0]
  
file_path: chainer/chainer/functions/loss/squared_error.py
imports: 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: squared_error(x0, x1) and returns: SquaredError