<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def print_search_results(self, search_results, buf=sys.stdout):
 """Print formatted search results. Args: search_results (list of `ResourceSearchResult`):
 Search to format. """

        formatted_lines = self.format_search_results(search_results)
        pr = Printer(buf)

        for txt, style in formatted_lines:
            pr(txt, style)