class_docstr: See: https://arxiv.org/pdf/1711.02508.pdf.
class_docstr_tok: ["See",":","https",":","\/\/arxiv.org\/pdf\/1711.02508.pdf","."]
code: def test_matrix_angle(self, axis_name, angle_deg, device, dtype):
      angle = (
          (angle_deg * kornia.pi / 180.0)
          .to(dtype)
          .to(device)
          .view(1, 1)
      )
      rot_m, _ = TestAngleOfRotations.axis_and_angle_to_rotation_matrix(
          axis_name=axis_name, angle=angle, device=device, dtype=dtype
      )
      matrix_angle_abs = TestAngleOfRotations.matrix_angle_abs(rot_m)
      assert_close(torch.abs(angle), matrix_angle_abs)
  
imports: import numpy
  import pytest
  import torch
  import kornia
  from kornia.testing import assert_close
label_desc: Use image node_id 4 for calling the TestAngleOfRotations obj's underlying member method code with example usage: obj.test_matrix_angle(axis_name, angle_deg, device, dtype) without return types