MDL-32662 Added get_groupings method