code: def _check_precision_positivity(precision, covariance_type):
      """Check a precision vector is positive-definite."""
      if np.any(np.less_equal(precision, 0.0)):
          raise ValueError(
              "'%s precision' should be " "positive" % covariance_type
          )
  
imports: import numpy
  from scipy import linalg
  from .base import BaseMixture, _check_shape
  from ..externals.six.moves import zip
  from ..utils import check_array
  from ..utils.validation import check_is_fitted
  from ..utils.extmath import row_norms
label_desc: Use image node_id 3 for calling a global function with example usage: _check_precision_positivity(precision, covariance_type) without return types