code: def find_autosummary_in_docstring(
      name: str,
      filename: str | None = None,
  ) -> list[AutosummaryEntry]:
      """Find out what items are documented in the given object's docstring.
  
      See `find_autosummary_in_lines`.
      """
      try:
          real_name, obj, parent, modname = import_by_name(name)
          lines = pydoc.getdoc(obj).splitlines()
          return find_autosummary_in_lines(
              lines, module=name, filename=filename
          )
      except AttributeError:
          pass
      except ImportExceptionGroup as exc:
          errors = "\n".join(
              {f"* {type(e).__name__}: {e}" for e in exc.exceptions}
          )
          logger.warning(
              f"Failed to import {name}.\nPossible hints:\n{errors}"
          )  # NoQA: G004
      except SystemExit:
          logger.warning(
              "Failed to import '%s'; the module executes module level "
              "statement and it might call sys.exit().",
              name,
          )
      return []
  
imports: from __future__ import annotations
  import argparse
  import importlib
  import inspect
  import locale
  import os
  import pkgutil
  import pydoc
  import re
  import sys
  from os import path
  from typing import TYPE_CHECKING, Any, NamedTuple
  from jinja2 import TemplateNotFound
  from jinja2.sandbox import SandboxedEnvironment
  import sphinx.locale
  from sphinx import __display_version__, package_dir
  from sphinx.builders import Builder
  from sphinx.config import Config
  from sphinx.ext.autodoc.importer import import_module
  from sphinx.ext.autosummary import ImportExceptionGroup, get_documenter, import_by_name, import_ivar_by_name
  from sphinx.locale import __
  from sphinx.pycode import ModuleAnalyzer, PycodeError
  from sphinx.registry import SphinxComponentRegistry
  from sphinx.util import logging, rst
  from sphinx.util.inspect import getall, safe_getattr
  from sphinx.util.osutil import ensuredir
  from sphinx.util.template import SphinxTemplateLoader
label_desc: Use image node_id 15 for calling a global function with example usage: find_autosummary_in_docstring(name, filename) and returns: list, find_autosummary_in_lines