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. The gene discussed is CD274; the disease is neoplasm.