code: def test_deprecated_set_potential_energy():
      m, g, h = symbols("m g h")
      P = Point("P")
      p = Particle("pa", P, m)
      with warns_deprecated_sympy():
          p.set_potential_energy(m * g * h)
  
file_path: sympy/sympy/physics/mechanics/tests/test_particle.py
imports: from sympy import symbols
  from sympy.physics.mechanics import Point, Particle, ReferenceFrame, inertia
  from sympy.physics.mechanics.body_base import BodyBase
  from sympy.testing.pytest import raises, warns_deprecated_sympy
label_desc: Use image node_id 4 for calling a global function with example usage: test_deprecated_set_potential_energy() without return types