Dielectric Tensor εij (total)

How can i calculate the Dielectric Tensor εij (total) like here. I obtained the same results for the electronic contribution (HEAD OF MICROSCOPIC STATIC DIELECTRIC TENSOR (independent particle, excluding Hartree and local field effects)
).

Does this help? Dielectric Constants - Materials Project Documentation