<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_weights_of_nn_sites(self, structure, n):
 """ Get weight associated with each near neighbor of site with index n in structure. Args: structure (Structure):
 input structure. n (integer):
 index of site for which to determine the weights. Returns: weights (list of floats):
 near-neighbor weights. """


        return [e['weight'] for e in self.get_nn_info(structure, n)]