code: def test_from_function(self):
      obj = DocstringComponents.from_function_params(example_func)
      assert obj.a == "a : str\n    A function parameter."
  
file_path: seaborn/tests/test_docstrings.py
imports: from seaborn._docstrings import DocstringComponents
label_desc: Use image node_id 3 for calling the TestDocstringComponents obj's underlying member method code with example usage: obj.test_from_function() without return types