Key Lock-in Prevention Function does not Work Properly: Wiring Diagram
WARNING: This page is about a different car, the 2011 Toyota Matrix. However, it is still accessible from the selected car via links, so may be relevant.
Fig 1: Front Door Courtesy Switch - Wiring Diagram