code: def matches(self, other, **kwargs):
          
          from pymatgen.analysis.structure_matcher import StructureMatcher
          m = StructureMatcher(**kwargs)
          return m.fit(Structure.from_sites(self), Structure.from_sites(other))
docs: Check whether this structure is similar to another structure.
          Basically a convenience method to call structure matching fitting.
  
          Args:
              other (IStructure/Structure): Another structure.
              **kwargs: Same **kwargs as in
                  :class:`pymatgen.analysis.structure_matcher.StructureMatcher`.
  
          Returns:
              (bool) True is the structures are similar under some affine
              transformation.