<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def filter_teams(self, teams):
 		"""Expects an iterable of team IDs"""

		return [LeaderboardInstance(x) for x in self._leaderboard if x['faction']['id'] in teams]