code: def is_fit_to_structure(self, structure, tol=1e-2):
          
          return (self - self.fit_to_structure(structure) < tol).all()
docs: Tests whether a tensor is invariant with respect to the
          symmetry operations of a particular structure by testing
          whether the residual of the symmetric portion is below a
          tolerance
  
          Args:
              structure (Structure): structure to be fit to
              tol (float): tolerance for symmetry testing