Here is how you would set up the 4 relays if you have the 4 inputs of tail in, brake in, left in, right in. Tail in is also known as running lights.
Note that in pre-2021 Model S, there was a left and right tail-in and they needed to be combined with another relay to get proper behaviour...