In this context the use of a hidden attribute `_cached_classes` seems confusing.  Shouldn't there be a public attribute or method to access all frame classes in a transform graph?  The label as `cached` also makes me think of something that is temporarily there as a speedup convenience, which I don't think applies here.