You will need a scan tool capable of performing that function (Autell, Snap On, OTC, or factory, NOT a code reader). Depending on the brand of scan tool it will be under ; "additional procedures", "miscellaneous functions ", or "system tests". From there you want to finde "learn ETC" (electronic throttle control) or "learn APP" (accelerator pedal position). It will tell you what to click and when to hold and release the pedal. If there is a wiring problem then it will stop you with an error message.