import itertools


def list_of_combs(arr):
    """returns a list of all subsets of a list"""
    combs = []
    for i in range(len(arr)):
      listing = [list(x) for x in itertools.combinations(arr, i+1)]
      combs.extend(listing)
    return combs