A Tiny Sun in a Jar Is Shedding Light on Solar Flares