The birthday cake was made to look like a train.
A cake is in the shape of a train.
a cake in the shape of a train with a number two candle
This is a birthday cake baked in the shape of a train.
A train cake, apparently for somebody's second birthday.