It's not that complex. The power from the cells are passed through resisters which are attached to heatsinks which dissipated the heat. That's all. Back in the day of Nimh or Nicad, we used automotive lightbulbs wired in series to discharge batteries. That method can still be used but you need to monitor voltage so you don't go below 3.0 volts per cell.