A significant part of The Imitation Game is dedicated to an Inspector named Nock who investigates Alan Turing and thinks the man might have been a spy.
In actuality, the character of Nock is entirely fictional, and nobody ever believed Alan Turing was a spy.
In addition, Benedict Cumberbatch plays the role of Turning as a shy and standoffish man.
The investigation into him was specifically in regards to indecency law violations because Turing was gay.