How the Brain Generalizes Knowledge Across Contexts