code: def mean_squared_error(image0, image1):
      """
      Compute the mean-squared error between two images.
  
      Parameters
      ----------
      image0, image1 : ndarray
          Images.  Any dimensionality, must have same shape.
  
      Returns
      -------
      mse : float
          The mean-squared error (MSE) metric.
  
      Notes
      -----
      .. versionchanged:: 0.16
          This function was renamed from ``skimage.measure.compare_mse`` to
          ``skimage.metrics.mean_squared_error``.
  
      """
      check_shape_equality(image0, image1)
      image0, image1 = _as_floats(image0, image1)
      return np.mean((image0 - image1) ** 2, dtype=np.float64)
  
file_path: scikit-image/skimage/metrics/simple_metrics.py
imports: import numpy
  from scipy.stats import entropy
  from ..util.dtype import dtype_range
  from .._shared.utils import _supported_float_type, check_shape_equality, warn
label_desc: Use image node_id 2 for calling a global function with example usage: mean_squared_error(image0, image1) and returns: np