How would you structure a class to manage the lifecycle of a model loaded into GPU memory?
Implement a lifecycle manager that tracks GPU residency with reference counting. The input is a list of operations, each either load, infer, or unload; return the status produced after each operation. No actual GPU calls are required.
def manage_model_lifecycle(events):