code: def clear_subsystem_caches(subsys):
      
      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 = {}
docs: Clear subsystem caches