Setting an Object Filter for the outlinerEditor

Hello,

I’m looking for the equivalent method to this Object Filter command in PyMel.

From the Outliner menu, it’s Show > Object > Sets

I have read all of the Outliner PyMel reference, but I don’t see the parameters I can pass to the instantiation of the Outliner Window. For example, there are “setFilter” and “filter” flags, but I don’t know what to pass to them to get this Object filtering. There is “defaultSetFilter” but with that as the filter, I still see joints and geometry in my Outliner.

Can anyone help me set up an Outliner with only sets please?

Thank you!