<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def last_n_results(self, n):
 """ Helper method for returning a set number of the previous check results. """

        return list(
            itertools.islice(
                self.results, len(self.results) - n, len(self.results)
            )
        )