A hearty autumn pie featuring buttery pastry, caramelised onions, and layers of potatoes with three distinct cheeses.