code: def get_nn_info(self, structure, n):
          
          Get all near-neighbor sites as well as the associated image locations
          and weights of the site with index n in structure
          using Voronoi decomposition.
  
          Args:
              structure (Structure): input structure.
              n (integer): index of site for which to determine near-neighbor
                  sites.
   
          Returns:
              siw (list of tuples (Site, array, float)): tuples, each one
                  of which represents a coordinated site, its image location,
                  and its weight.
          """
  
          # Run the tessellation
          nns = self.get_voronoi_polyhedra(structure, n)
  
          # Extract the NN info
          return self._extract_nn_info(structure, nns)
docs: Get all near-neighbor sites as well as the associated image locations
          and weights of the site with index n in structure
          using Voronoi decomposition.
  
          Args:
              structure (Structure): input structure.
              n (integer): index of site for which to determine near-neighbor
                  sites.
   
          Returns:
              siw (list of tuples (Site, array, float)): tuples, each one
                  of which represents a coordinated site, its image location,
                  and its weight.