code: def generate_lars_path(weighted_data, weighted_labels):
          
          x_vector = weighted_data
          alphas, _, coefs = lars_path(x_vector,
                                       weighted_labels,
                                       method='lasso',
                                       verbose=False)
          return alphas, coefs
docs: Generates the lars path for weighted data.
  
          Args:
              weighted_data: data that has been weighted by kernel
              weighted_label: labels, weighted by kernel
  
          Returns:
              (alphas, coefs), both are arrays corresponding to the
              regularization parameter and coefficients, respectively