code: def check_so2_matrix(matrix: Tensor) -> None:
      for m in matrix.reshape(-1, 2, 2):
          if m[0, 0] != m[1, 1] or m[0, 1] != -m[1, 0]:
              raise ValueError("Invalid rotation matrix")
  
file_path: kornia/kornia/geometry/liegroup/_utils.py
imports: from kornia.core import Tensor
label_desc: Use image node_id 5 for calling a global function with example usage: check_so2_matrix(matrix) without return types