I tried to find subsets of 2,3,4 from a unique value set of 58 unique entries in the Jupyter notebook. Below is the function which I used.
im