code: def where_entry_type(query, entry_type):
      
      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)
docs: Generate a where clause for entries of certain types
  
      entry_type -- one or more entries to check against