code: def test_docstring_parameters():
      """Test module docstring formatting."""
      public_modules_ = public_modules[:]
  
      incorrect = []
      for name in public_modules_:
          with warnings.catch_warnings(record=True):  # traits warnings
              module = __import__(name, globals())
          for submod in name.split(".")[1:]:
              module = getattr(module, submod)
          classes = inspect.getmembers(module, inspect.isclass)
          for cname, cls in classes:
              if cname.startswith("_"):
                  continue
              with warnings.catch_warnings(record=True) as w:
                  cdoc = docscrape.ClassDoc(cls)
              if len(w):
                  raise RuntimeError(
                      "Error for __init__ of %s in %s:\n%s"
                      % (cls, name, w[0])
                  )
              if hasattr(cls, "__init__"):
                  incorrect += check_parameters_match(
                      cls.__init__, cdoc
                  )
              for method_name in cdoc.methods:
                  method = getattr(cls, method_name)
                  incorrect += check_parameters_match(method)
              if hasattr(cls, "__call__"):
                  incorrect += check_parameters_match(cls.__call__)
          functions = inspect.getmembers(module, inspect.isfunction)
          for fname, func in functions:
              if fname.startswith("_"):
                  continue
              incorrect += check_parameters_match(func)
      msg = "\n" + "\n".join(sorted(list(set(incorrect))))
      if len(incorrect) > 0:
          raise AssertionError(msg)
  
file_path: celer/celer/tests/test_docstring_parameters.py
imports: import inspect
  import os.path
  import re
  import sys
  from unittest import SkipTest
  import warnings
  from pkgutil import walk_packages
  from inspect import getsource
  from numpydoc import docscrape
  import celer
label_desc: Use image node_id 3 for calling a global function with example usage: test_docstring_parameters() without return types