code: def test_elemwise_velocity():
      scaling = np.array([1, 2, 3])
      x = floatX(np.ones_like(scaling))
      pot = quadpotential.quad_potential(scaling, True)
      v = pot.velocity(x)
      npt.assert_allclose(v, scaling)
      assert v.dtype == pot.dtype
  
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 2 for calling a global function with example usage: test_elemwise_velocity() without return types