def METHOD_NAME(rotation_matrix_X_HALF_PI):
    X_PI = np.matmul(rotation_matrix_X_HALF_PI, rotation_matrix_X_HALF_PI)
    rotations = [X_PI, rotation_matrix_X_HALF_PI]
    canonical_rotation = calculate_canonical_rotation(np.eye(3), rotations)
    assert np.allclose(
        canonical_rotation, np.linalg.inv(rotation_matrix_X_HALF_PI))