code: def test__subsets_sorted():
      assert list(_subsets_sorted((1, 2))) == [(), (1,), (2,), (1, 2)]
      assert list(_subsets_sorted((1, 2, 3))) == [
          (),
          (1,),
          (2,),
          (3,),
          (1, 2),
          (1, 3),
          (2, 3),
          (1, 2, 3),
      ]
      assert len(list(_subsets_sorted(range(5)))) == 2**5
  
imports: from __future__ import print_function
  from patsy.util import no_pickling
label_desc: Use image node_id 4 for calling a global function with example usage: test__subsets_sorted() without return types