code: def _deprecate_covmats(covmats, X):
      if covmats is not None:
          print(
              "DeprecationWarning: input covmats has been renamed into X and "
              "will be removed in 0.8.0."
          )
          X = covmats
      return X
  
imports: from copy import deepcopy
  import numpy
  import warnings
  from .ajd import ajd_pham
  from .base import sqrtm, invsqrtm, logm, expm, powm
  from .distance import distance_riemann
  from .geodesic import geodesic_riemann
  from .utils import check_weights
label_desc: Use image node_id 1 for calling a global function with example usage: _deprecate_covmats(covmats, X) and returns: X