I imagine it will need to look like this:
Custom property on the repeater called Master Dataset to use for filtering collapsed templates out of the repeater: