<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 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)