code: def test_function_docstring(function_name, request):
      """Check function docstrings using numpydoc."""
      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: scikit-learn/sklearn/tests/test_docstrings.py
imports: import re
  from inspect import signature
  from typing import Optional
  import pytest
  from sklearn.experimental import enable_halving_search_cv, enable_iterative_imputer
  from sklearn.utils.discovery import all_displays, all_estimators, all_functions
label_desc: Use image node_id 5 for calling a global function with example usage: test_function_docstring(function_name, request) without return types