Select Polygons with multiple smooth groups

need a script which can select polygons with multiple smooth groups assigned. I noticed that when I turn on:
Modify Panel →Edit Edges →"Smooth"
- on one polygon leaving few smoothing groups. Within single smoothed area polygons has few assigned smooth groups instead one sg for all this polygons :o

Will be great if this script can clean multiple smooth groups in every smoothed area (area surrounded by hard edges) and assign only single smooth group for each such areas

01_hard_edge.jpg553.04 KB
02_smooth_edge.jpg558.4 KB
03_smooth_edge.jpg555.77 KB
04_multiply_smooth_groups.jpg573.1 KB