The role of tumor heterogeneity in immune-tumor interactions