So long as it came from a car with the same transmission, it is 95% the same. The only differences are the Beetle gets a few extra brackets (coolant bleed hose bracket on upper rear bolt of EGR valve, lower radiator hose bracket at front lower part of block, A/C line bracket at flywheel end of cylinder head, wire harness holder at oil filter housing, hose bracket in front of injection pump), and the coolant crossover pipe has a different angled nipple for the hose coming from the coolant reservoir.
If it came from a car with a different transmission, the injection pump and injectors will also be different, as well as the water neck at the rear of the cylinder head.