code: def test_downsample_deprecated():
      streamline = [np.array([[0, 0, 0], [1, 1, 1]])]
      npt.assert_raises(
          ExpiredDeprecationError, tm.downsample, streamline, 12
      )
  
file_path: dipy/dipy/tracking/tests/test_metrics.py
imports: import numpy
  import numpy.testing
  from numpy.testing import assert_equal, assert_array_almost_equal
  from dipy.tracking import metrics
  from dipy.tracking import distances
  from dipy.utils.deprecator import ExpiredDeprecationError
  from dipy.testing.decorators import set_random_number_generator
label_desc: Use image node_id 1 for calling a global function with example usage: test_downsample_deprecated() without return types