code: def _inv_sqrtm(x):
      """Computes x^(-1/2)"""
      vals, vecs = np.linalg.eigh(x)
      return (vecs / np.sqrt(vals)).dot(vecs.T)
  
file_path: metric-learn/metric_learn/rca.py
imports: import numpy
  import warnings
  from sklearn.base import TransformerMixin
  from ._util import _check_n_components
  from .base_metric import MahalanobisMixin
  from .constraints import Constraints
label_desc: Use image node_id 2 for calling a global function with example usage: _inv_sqrtm(x) and returns: unknown