<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_by_IDs(self, ids, ID=None):
 """ Keep only Measurements with given IDs. """

        fil = lambda x: x in ids
        return self.filter_by_attr('ID', fil, ID)