code: def _sqrtm(input_data: torch.Tensor) -> torch.Tensor:
      """Compute the square root of a matrix."""
      scipy_res, _ = scipy.linalg.sqrtm(
          input_data.detach().cpu().numpy().astype(np.float_),
          disp=False,
      )
      return torch.from_numpy(scipy_res)
  
file_path: MONAI/monai/metrics/fid.py
imports: from __future__ import annotations
  import numpy
  import torch
  from monai.metrics.metric import Metric
  from monai.utils import optional_import
label_desc: Use image node_id 3 for calling a global function with example usage: _sqrtm(input_data) and returns: torch