<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def ensure_packages(packages):
 """Install but do not upgrade required plugin packages."""

    required = filter_installed_packages(packages)
    if required:
        apt_install(required, fatal=True)