Basically when you want to produce energy, you give the energy generator some energy and then it produces energy,if produced energy is more than only it can act as a energy source , fusion had always produced energy,issue was net energy or breakthrough point ,which speculatively has been achieved