<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def cache_installed_wheels(index_url, installed_packages):
 """After installation, pip tells us what it installed and from where. We build a structure that looks like .cache/pip-faster/wheelhouse/$index_url/$wheel """

    for installed_package in installed_packages:
        if not _can_be_cached(installed_package):
            continue
        _store_wheel_in_cache(installed_package.link.path, index_url)