code: def get_atoms(structure, **kwargs):
          
          if not structure.is_ordered:
              raise ValueError("ASE Atoms only supports ordered structures")
          symbols = [str(site.specie.symbol) for site in structure]
          positions = [site.coords for site in structure]
          cell = structure.lattice.matrix
          return Atoms(symbols=symbols, positions=positions, pbc=True,
                       cell=cell, **kwargs)
docs: Returns ASE Atoms object from pymatgen structure.
  
          Args:
              structure: pymatgen.core.structure.Structure
              **kwargs: other keyword args to pass into the ASE Atoms constructor
  
          Returns:
              ASE Atoms object