code: def test_docstring_inject(obj, obj_docstring):
      obj_injected_docstring = Substitution(
          param_1="xxx", param_2="yyy"
      )(obj)
      assert obj_injected_docstring.__doc__ == obj_docstring
  
file_path: imbalanced-learn/imblearn/utils/tests/test_docstring.py
imports: import pytest
  from imblearn.utils import Substitution
  from imblearn.utils._docstring import _n_jobs_docstring, _random_state_docstring
label_desc: Use image node_id 2 for calling a global function with example usage: test_docstring_inject(obj, obj_docstring) without return types