code: def average_bundle_length(bundle):
      """Find average Euclidean length of the bundle in mm.
  
      Parameters
      ----------
      bundle : Streamlines
          Bundle who's average length is to be calculated.
  
      Returns
      -------
      int
          Average Euclidean length of bundle in mm.
  
      """
      metric = AveragePointwiseEuclideanMetric()
      qb = QuickBundles(threshold=85.0, metric=metric)
      clusters = qb.cluster(bundle)
      centroids = Streamlines(clusters.centroids)
  
      return length(centroids)[0]
  
file_path: dipy/dipy/align/streamwarp.py
imports: import warnings
  import numpy
  from scipy.optimize import linear_sum_assignment
  from dipy.align.streamlinear import slr_with_qbx
  from dipy.align.cpd import DeformableRegistration
  from dipy.tracking.streamline import unlist_streamlines, Streamlines
  from dipy.stats.analysis import assignment_map
  from dipy.tracking.streamline import length
  from dipy.align.bundlemin import distance_matrix_mdf
  from dipy.viz.plotting import bundle_shape_profile
  from dipy.segment.clustering import QuickBundles
  from dipy.segment.metricspeed import AveragePointwiseEuclideanMetric
label_desc: Use image node_id 1 for calling a global function with example usage: average_bundle_length(bundle) and returns: length