class_docstr: The orthogonal group
docstr: Check that the matrix is (almost) orthogonal.
docstr_tok: ["Check","that","the","matrix","is","(","almost",")","orthogonal","."]
code: def validate(self, M=None):
      """
      Check that the matrix is (almost) orthogonal.
      """
  
      if M is None:
          M = self.matrix
      return np.allclose(
          np.identity(self.ndims[0], dtype=self.dtype), np.dot(M.T, M)
      )
  
imports: import numpy
  from nipy.core.api import AffineTransform, CoordinateSystem
  from nipy.core.reference.coordinate_map import compose
  from nipy.core.reference.coordinate_map import product
label_desc: Use image node_id 1 for calling the O obj's underlying member method code with example usage: obj.validate(M) and returns: np