<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def where_entry_type(query, entry_type):
 """ Generate a where clause for entries of certain types entry_type -- one or more entries to check against """

    if isinstance(entry_type, (list, set, tuple)):
        return orm.select(e for e in query if e.entry_type in entry_type)
    return orm.select(e for e in query if e.entry_type == entry_type)