<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def clear_subsystem_caches(subsys):
 """Clear subsystem caches"""

    try:
        # New-style caches
        subsys._repertoire_cache.clear()
        subsys._mice_cache.clear()
    except TypeError:
        try:
            # Pre cache.clear() implementation
            subsys._repertoire_cache.cache = {}
            subsys._mice_cache.cache = {}
        except AttributeError:
            # Old school, pre cache refactor
            subsys._repertoire_cache = {}
            subsys._repertoire_cache_info = [0, 0]
            subsys._mice_cache = {}