code: def test_function_docstring(function_name, request):
      """Check function docstrings using numpydoc."""
      if function_name in FUNCTION_DOCSTRING_IGNORE_LIST:
          request.applymarker(
              pytest.mark.xfail(
                  run=False, reason="TODO pass numpydoc validation"
              )
          )
  
      res = numpydoc_validation.validate(function_name)
  
      res["errors"] = list(
          filter_errors(res["errors"], method="function")
      )
  
      if res["errors"]:
          msg = repr_errors(
              res, method=f"Tested function: {function_name}"
          )
  
          raise ValueError(msg)
  
file_path: imbalanced-learn/maint_tools/test_docstring.py
imports: import importlib
  import inspect
  import pkgutil
  import re
  from inspect import signature
  from typing import Optional
  import pytest
  import imblearn
  from imblearn.utils.testing import all_estimators
label_desc: Use image node_id 6 for calling a global function with example usage: test_function_docstring(function_name, request) without return types