code: def test_elemwise_posdef():
      scaling = np.array([0, 2, 3])
      with pytest.raises(quadpotential.PositiveDefiniteError):
          quadpotential.quad_potential(scaling, True)
  
imports: import warnings
  import numpy
  import numpy.testing
  import pytest
  import scipy.sparse
  import pymc
  from pymc.pytensorf import floatX
  from pymc.step_methods.hmc import quadpotential
label_desc: Use image node_id 1 for calling a global function with example usage: test_elemwise_posdef() without return types