Finally, we validated the in vitro and ex vivo findings in two-dimensional and three-dimensional co-culture models utilizing tumor spheroids and patient-derived tumor organoids (PDTOs) to elucidate the impact of metformin and anti-PD-1/PD-L1 immunotherapy on the interactions between cancer and immune cells. This evidence concerns the gene CD274 and cancer.