<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def include_from_file(records, handle):
 """ Filter the records, keeping only sequences whose ID is contained in the handle. """

    ids = set(i.strip() for i in handle)

    for record in records:
        if record.id.strip() in ids:
            yield record