code: def test_slerp(self, device, dtype, batch_size):
      for axis in torch.tensor(
          [[1.0, 0.0, 0.0], [0.0, 1.0, 0.0], [0.0, 0.0, 1.0]]
      ):
          axis = axis.to(device, dtype)
          if batch_size is not None:
              axis = axis.repeat(batch_size, 1)
          q1 = Quaternion.from_axis_angle(axis * 0)
          q1.to(device, dtype)
          q2 = Quaternion.from_axis_angle(axis * 3.14159)
          q2.to(device, dtype)
          for t in torch.linspace(0.1, 1, 10):
              q3 = q1.slerp(q2, t)
              q4 = Quaternion.from_axis_angle(axis * t * 3.14159)
              self.assert_close(q3, q4)
  
imports: import pytest
  import torch
  from kornia.geometry.quaternion import Quaternion
  from kornia.testing import assert_close
label_desc: Use image node_id 22 for calling the TestQuaternion obj's underlying member method code with example usage: obj.test_slerp(device, dtype, batch_size) without return types