Code for: Improving the efficiency of G0W0 calculations with approximate spectral decompositions of dielectric matrices