def _split_docstring(docstring: str):
  """Splits the docstring into a summary and description."""
  if not docstring:
    docstring = ""
  lines = docstring.splitlines()
  if not lines:
    return "", ""

  # Skip leading blank lines.
  while lines and not lines[0]:
    lines = lines[1:]
  if len(lines) > 2:
    return lines[0], "\n".join(lines[2:])
  else:
    return lines[0], ""