ec_summarize_attrlvls function

Summarize attributes and levels