<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def all_combinations(items):
 """Generate all combinations of a given list of items."""

    return (set(compress(items,mask)) for mask in product(*[[0,1]]*len(items)))