code: def test_index():
      assert_equal(doc["index"]["default"], "random")
      assert_equal(len(doc["index"]), 2)
      assert_equal(len(doc["index"]["refguide"]), 2)
  
imports: import sys, textwrap
  from numpydoc.docscrape import NumpyDocString, FunctionDoc, ClassDoc
  from numpydoc.docscrape_sphinx import SphinxDocString, SphinxClassDoc
  from nose.tools import *
label_desc: Use image node_id 10 for calling a global function with example usage: test_index() without return types