def tabulate(self, request_stats):
        """Print review request summary and status in a table.

        Args:
            request_stats (dict):
                A dict that contains statistics about each review request.
        """
        if len(request_stats):
            has_branches = False
            has_bookmarks = False

            table = tt.Texttable(get_terminal_size().columns)
            header = ['Status', 'Review Request']

            for request in request_stats:
                if 'branch' in request:
                    has_branches = True

                if request in 'bookmark':
                    has_bookmarks = True

            if has_branches:
                header.append('Branch')

            if has_bookmarks:
                header.append('Bookmark')

            table.header(header)

            for request in request_stats:
                row = [request['status'], request['summary']]

                if has_branches:
                    row.append(request.get('branch') or '')

                if has_bookmarks:
                    row.append(request.get('bookmark') or '')

                table.add_row(row)

            print(table.draw())
        else:
            print('No review requests found.')

        print()
dataset/ETHPy150Open reviewboard/rbtools/rbtools/commands/status.py/Status.tabulate/swapped operands of `in`