code: def format_search_results(self, search_results):
          
          formatted_lines = []
  
          for search_result in search_results:
              lines = self._format_search_result(search_result)
              formatted_lines.extend(lines)
  
          return formatted_lines
docs: Format search results.
  
          Args:
              search_results (list of `ResourceSearchResult`): Search to format.
  
          Returns:
              List of 2-tuple: Text and color to print in.