code: def test_raise_mdf():
      thresholds = [1, 0.1]
  
      metric = MinimumAverageDirectFlipMetric()
  
      assert_raises(
          ValueError, QuickBundlesX, thresholds, metric=metric
      )
      assert_raises(
          ValueError, QuickBundles, thresholds[1], metric=metric
      )
  
imports: import itertools
  import numpy
  from numpy.testing import assert_array_equal, assert_equal, assert_raises
  from dipy.segment.clustering import QuickBundlesX, QuickBundles, qbx_and_merge
  from dipy.segment.featurespeed import ResampleFeature
  from dipy.segment.metricspeed import AveragePointwiseEuclideanMetric, MinimumAverageDirectFlipMetric
  from dipy.tracking.streamline import set_number_of_points
  from dipy.tracking.streamline import Streamlines
  from dipy.testing.decorators import set_random_number_generator
label_desc: Use image node_id 11 for calling a global function with example usage: test_raise_mdf() without return types