code: def test_index():
      npt.assert_equal(doc["index"]["default"], "random")
      npt.assert_equal(len(doc["index"]), 2)
      npt.assert_equal(len(doc["index"]["refguide"]), 2)
  
imports: import textwrap
  from dipy.workflows.docstring_parser import NumpyDocString
  import numpy.testing
label_desc: Use image node_id 10 for calling a global function with example usage: test_index() without return types