code: def get_path_summary(
      func: t.Callable, fallback: t.Optional[str] = None
  ) -> str:
      """Get path summary from the name or docstring of the view function."""
      summary: str
      docs: list = (func.__doc__ or "").strip().split("\n")
      if docs[0]:
          # Use the first line of docstring
          summary = docs[0]
      else:
          # Use the function name
          summary = (
              fallback or " ".join(func.__name__.split("_")).title()
          )
      return summary
  
file_path: apiflask/src/apiflask/openapi.py
imports: from __future__ import annotations
  import typing
  from .security import HTTPBasicAuth
  from .security import HTTPTokenAuth
  from .types import HTTPAuthType
label_desc: Use image node_id 6 for calling a global function with example usage: get_path_summary(func, fallback) and returns: summary