code: def test_apply_torque():
      t = symbols("t")
      q = dynamicsymbols("q")
      B1 = Body("B1")
      B2 = Body("B2")
      N = ReferenceFrame("N")
      torque = t * q * N.x
  
      B1.apply_torque(torque, B2)  # Applying equal and opposite torque
      assert B1.loads == [(B1.frame, torque)]
      assert B2.loads == [(B2.frame, -torque)]
  
      torque2 = t * N.y
      B1.apply_torque(torque2)
      assert B1.loads == [(B1.frame, torque + torque2)]
  
imports: from sympy import Symbol, symbols, sin, cos, Matrix, zeros, simplify
  from sympy.physics.vector import Point, ReferenceFrame, dynamicsymbols, Dyadic
  from sympy.physics.mechanics import inertia, Body
  from sympy.testing.pytest import raises
label_desc: Use image node_id 13 for calling a global function with example usage: test_apply_torque() without return types