Anne Bancroft created the role of her teacher , Annie Sullivan , on Broadway and Patty Duke took the part of her pupil , as they did in Arthur Penn 's 1962 film , for which Gibson provided the screenplay .