code: def _check_precision_matrix(precision, covariance_type):
      """Check a precision matrix is symmetric and positive-definite."""
      if not (
          np.allclose(precision, precision.T)
          and np.all(linalg.eigvalsh(precision) > 0.0)
      ):
          raise ValueError(
              "'%s precision' should be symmetric, positive-definite"
              % covariance_type
          )
  
imports: import numpy
  from scipy import linalg
  from ..utils import check_array
  from ..utils._param_validation import StrOptions
  from ..utils.extmath import row_norms
  from ._base import BaseMixture, _check_shape
label_desc: Use image node_id 4 for calling a global function with example usage: _check_precision_matrix(precision, covariance_type) without return types