code: def test_fss_invalid_mpts():
      assert_raises(
          ValueError,
          FastStreamlineSearch,
          f1,
          max_radius=4.0,
          nb_mpts=4,
          resampling=23,
      )
      assert_raises(
          ZeroDivisionError,
          FastStreamlineSearch,
          f1,
          max_radius=4.0,
          nb_mpts=0,
          resampling=24,
      )
  
file_path: dipy/dipy/segment/tests/test_fss.py
imports: import numpy
  from dipy.data import get_fnames
  from dipy.io.streamline import load_tractogram
  from dipy.segment.fss import FastStreamlineSearch, nearest_from_matrix_row, nearest_from_matrix_col
  from dipy.segment.metric import mean_euclidean_distance
  from dipy.testing import assert_arrays_equal, assert_greater, assert_greater_equal, assert_true
  from numpy.testing import assert_almost_equal, assert_raises
label_desc: Use image node_id 8 for calling a global function with example usage: test_fss_invalid_mpts() without return types