A collection of modules and packages that can be imported into a program is called

Answer:
library
Explanation:
class - used to create objects
documentation - provides information on the program's workings
function - this is part of a module