Before 2027! The AI could even be rather dumb (compared to humans) and still be able to drive better than we humans can. Why? We do not have eyes in the back of our heads for example. The number of sensors creating the 'awareness' for driving the Tesla cars has recently been upgraded by several factors even though it was already driving safer than humans.
This is all on a trajectory indicating a safer world rather than the 'robots-are-taking-over' world and that's a good direction!