extract_modules function

Extract modules of features