code: def get_documented_in_docstring(name, module=None, filename=None):
      """
      Find out what items are documented in the given object's docstring.
      See `get_documented_in_lines`.
  
      """
      try:
          obj, real_name = import_by_name(name)
          lines = pydoc.getdoc(obj).splitlines()
          return get_documented_in_lines(
              lines, module=name, filename=filename
          )
      except AttributeError:
          pass
      except ImportError as e:
          print(f"Failed to import '{name}': {e}")
      return {}
  
file_path: nipy/doc/sphinxext/autosummary_generate.py
imports: import glob
  import inspect
  import optparse
  import os
  import pydoc
  import re
  from autosummary import import_by_name
label_desc: Use image node_id 5 for calling a global function with example usage: get_documented_in_docstring(name, module, filename) and returns: dict, get_documented_in_lines