code: def test_point_a2pt_theorys():
      q = dynamicsymbols("q")
      qd = dynamicsymbols("q", 1)
      qdd = dynamicsymbols("q", 2)
      N = ReferenceFrame("N")
      B = N.orientnew("B", "Axis", [q, N.z])
      O = Point("O")
      P = O.locatenew("P", 0)
      O.set_vel(N, 0)
      assert P.a2pt_theory(O, N, B) == 0
      P.set_pos(O, B.x)
      assert P.a2pt_theory(O, N, B) == (-(qd**2)) * B.x + (qdd) * B.y
  
imports: from sympy.physics.vector import dynamicsymbols, Point, ReferenceFrame
  from sympy.testing.pytest import raises, ignore_warnings
  import warnings
label_desc: Use image node_id 4 for calling a global function with example usage: test_point_a2pt_theorys() without return types