code: def format_page(text):
      
      width = max(map(len, text.splitlines()))
      page = "+-" + "-" * width + "-+\n"
      for line in text.splitlines():
          page += "| " + line.ljust(width) + " |\n"
      page += "+-" + "-" * width + "-+\n"
      return page
docs: Format the text for output adding ASCII frame around the text.
  
      Args:
          text (str): Text that needs to be formatted.
  
      Returns:
          str: Formatted string.