docs: def format_usage(doc, width=None):
      # type: (str, Optional[int]) -> str
      """Format the docstring for display to the user.
  
      Args:
          doc: The docstring to reformat for display.
  
      Returns:
          The docstring formatted to parse and display to the user. This includes
          dedenting, rewrapping, and translating the docstring if necessary.
      """
      sections = doc.replace('\r', '').split('\n\n')
      width = width or get_terminal_size().columns or 80
      return '\n\n'.join(_wrap_section(s.strip(), width) for s in sections)