code: def test_docstring(func):
      globs = {"torch": torch, "dglsp": dglsp}
      runner = doctest.DebugRunner()
      finder = doctest.DocTestFinder()
      obj = getattr(dglsp, func)
      for test in finder.find(obj, func, globs=globs):
          runner.run(test)
  
file_path: dgl/tests/python/pytorch/sparse/test_reduction.py
imports: import doctest
  import operator
  import sys
  import backend
  import dgl.sparse
  import pytest
  import torch
label_desc: Use image node_id 2 for calling a global function with example usage: test_docstring(func) without return types