code: def get_reduced_structure(self, reduction_algo="niggli"):
          
          if reduction_algo == "niggli":
              reduced_latt = self._lattice.get_niggli_reduced_lattice()
          elif reduction_algo == "LLL":
              reduced_latt = self._lattice.get_lll_reduced_lattice()
          else:
              raise ValueError("Invalid reduction algo : {}"
                               .format(reduction_algo))
  
          if reduced_latt != self.lattice:
              return self.__class__(reduced_latt, self.species_and_occu,
                                    self.cart_coords,
                                    coords_are_cartesian=True, to_unit_cell=True,
                                    site_properties=self.site_properties, charge=self._charge)
          else:
              return self.copy()
docs: Get a reduced structure.
  
          Args:
              reduction_algo (str): The lattice reduction algorithm to use.
                  Currently supported options are "niggli" or "LLL".