def METHOD_NAME(tmin, tmax, tstep, eigenvalues, weights, n_electrons):
    """Return free energies at given temperatures."""
    free_energies = []
    efe = ElectronFreeEnergy(eigenvalues, weights, n_electrons)
    temperatures = np.arange(tmin, tmax + 1e-8, tstep)
    for T in temperatures:
        efe.run(T)
        free_energies.append(efe.free_energy)
    return temperatures, free_energies