Verse 31

इति शक्तिमयं चेतो घनाहंकारतां गतम् ।कोशकारक्रिमिरिव स्वेच्छया याति बन्धनम्

In plain words

Thus the mind (cetas), made of these powers, having become dense with ahaṅkāra, goes by its own will into bondage, like the cocoon-making worm.