code: def test_search_descending():
      a = np.linspace(10.0, 1.0, 10)
  
      npt.assert_equal(search_descending(a, 1.0), 1)
      npt.assert_equal(search_descending(a, 0.89), 2)
      npt.assert_equal(search_descending(a, 0.79), 3)
  
      # Test small array
      npt.assert_equal(search_descending(a[:1], 1.0), 1)
      npt.assert_equal(search_descending(a[:1], 0.0), 1)
      npt.assert_equal(search_descending(a[:1], 0.5), 1)
  
      # Test very small array
      npt.assert_equal(search_descending(a[:0], 1.0), 0)
  
file_path: dipy/dipy/reconst/tests/test_peak_finding.py
imports: import numpy
  import numpy.testing
  from dipy.reconst.recspeed import local_maxima, remove_similar_vertices, search_descending
  from dipy.data import default_sphere
  from dipy.core.sphere import unique_edges, HemiSphere
label_desc: Use image node_id 3 for calling a global function with example usage: test_search_descending() without return types