code: def test_point_pos():
      q = dynamicsymbols("q")
      N = ReferenceFrame("N")
      B = N.orientnew("B", "Axis", [q, N.z])
      O = Point("O")
      P = O.locatenew("P", 10 * N.x + 5 * B.x)
      assert P.pos_from(O) == 10 * N.x + 5 * B.x
      Q = P.locatenew("Q", 10 * N.y + 5 * B.y)
      assert Q.pos_from(P) == 10 * N.y + 5 * B.y
      assert Q.pos_from(O) == 10 * N.x + 10 * N.y + 5 * B.x + 5 * B.y
      assert O.pos_from(Q) == -10 * N.x - 10 * N.y - 5 * B.x - 5 * 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 6 for calling a global function with example usage: test_point_pos() without return types