code: def clear(self, *resource_types):
          
          resource_types = resource_types or tuple(self.__caches.keys())
  
          for cls in resource_types:
              # Clear and delete cache instances to guarantee no lingering references
              self.__caches[cls].clear()
              del self.__caches[cls]
docs: Clear cache for each provided APIResource class, or all resources if no classes are provided