[export] Remove references to capture_pre_autograd_graph inside test_export (#119875)
Summary: Title
Test Plan: CI
Reviewed By: zhxchen17
Differential Revision: D53728889
Pull Request resolved: https://github.com/pytorch/pytorch/pull/119875
Approved by: https://github.com/angelayi