code: def peak_values(
      bundle, peaks, dt, pname, bname, subject, group_id, ind, dir_name
  ):
      """Peak_values function finds the generalized fractional anisotropy (gfa)
          and quantitative anisotropy (qa) values from peaks object (eg: csa) for
          every point on a streamline used while tracking and saves it in hd5
          file.
  
      Parameters
      ----------
      bundle : string
          Name of bundle being analyzed
      peaks : peaks
          contains peak directions and values
      dt : DataFrame
          DataFrame to be populated
      pname : string
          Name of the dti metric
      bname : string
          Name of bundle being analyzed.
      subject : string
          subject number as a string (e.g. 10001)
      group_id : integer
          which group subject belongs to 1 patient and 0 for control
      ind : integer list
          ind tells which disk number a point belong.
      dir_name : string
          path of output directory
  
      """
  
      gfa = peaks.gfa
      anatomical_measures(
          bundle,
          gfa,
          dt,
          pname + "_gfa",
          bname,
          subject,
          group_id,
          ind,
          dir_name,
      )
  
      qa = peaks.qa[..., 0]
      anatomical_measures(
          bundle,
          qa,
          dt,
          pname + "_qa",
          bname,
          subject,
          group_id,
          ind,
          dir_name,
      )
  
file_path: dipy/dipy/stats/analysis.py
imports: import os
  import numpy
  from scipy.spatial import cKDTree
  from scipy.ndimage import map_coordinates
  from scipy.spatial.distance import mahalanobis
  from dipy.io.utils import save_buan_profiles_hdf5
  from dipy.segment.clustering import QuickBundles
  from dipy.segment.metricspeed import AveragePointwiseEuclideanMetric
  from dipy.tracking.streamline import set_number_of_points, values_from_volume, orient_by_streamline, Streamlines
label_desc: Use image node_id 1 for calling a global function with example usage: peak_values(bundle, peaks, dt, pname, bname, subject, group_id, ind, dir_name) without return types