Credit: Donato Sardella/Getty Images for Hammer Museum

Julia Roberts is on track for Train Man.

The actress is attached to star in the fact-based drama about Darius McCollum, the New York man who has been arrested more than 25 times for transit-related crimes, including impersonating MTA workers to commandeer subway trains and buses.

McCollum’s lawyers have maintained that his repeated arrests and lifelong fixation with trains are linked to Asperger syndrome. Roberts is to play Sally Butler, McCollum’s public defender and chief advocate.

Producer Eric Robinson of the Gotham Group first read about McCollum in the newspaper three years ago and has optioned his and Butler’s life rights. Simon Stephenson (the British TV series Eleventh Hour) wrote the script, which Robinson described to EW as “like Erin Brockovich meets Catch Me If You Can.”

He added, “Darius’ story really is about somebody who had a passion and ended up suffering because of that passion.”

A director has not been named for the project. FilmNation Entertainment is financing.

Roberts will next be seen in Mother’s Day and Money Monster.

Variety first reported the news about Train Man.