code: def print_search_results(self, search_results, buf=sys.stdout):
          
          formatted_lines = self.format_search_results(search_results)
          pr = Printer(buf)
  
          for txt, style in formatted_lines:
              pr(txt, style)
docs: Print formatted search results.
  
          Args:
              search_results (list of `ResourceSearchResult`): Search to format.