When Tesla pushes and runs code in the shadow mode, it is run in parallel to the "production" version of the software. The actual behavior of a car, even with the test code in, still relies on decisions made by the "production" version of the software[1]. The purpose of such testing is to compare decisions made by the updated code vs those made by the old version, and use this info for fine-tuning the next gen algorithms.