<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_favorites(self, username):
 """Get a user's favorite anime. :param str username: User to get favorites from. """


        r = self._query_('/users/%s/favorite_anime' % username, 'GET')

        results = [Favorite(item) for item in r.json()]
        return results