code: def _get_lattices(self, target_lattice, s, supercell_size=1):
          
          lattices = s.lattice.find_all_mappings(
              target_lattice, ltol=self.ltol, atol=self.angle_tol,
              skip_rotation_matrix=True)
          for l, _, scale_m in lattices:
              if abs(abs(np.linalg.det(scale_m)) - supercell_size) < 0.5:
                  yield l, scale_m
docs: Yields lattices for s with lengths and angles close to the
          lattice of target_s. If supercell_size is specified, the
          returned lattice will have that number of primitive cells
          in it
  
          Args:
              s, target_s: Structure objects