code: def list_powerset(lst):
      # the power set of the empty set has one element, the empty set
      result = [[]]
      for x in lst:
          # for every additional element in our set
          # the power set consists of the subsets that don't
          # contain this element (just take the previous power set)
          # plus the subsets that do contain the element (use list
          # comprehension to add [x] onto everything in the
          # previous power set)
          result.extend([subset + [x] for subset in result])
      return result
  
imports: from functools import reduce
label_desc: Use image node_id 1 for calling a global function with example usage: list_powerset(lst) and returns: result