I was flabbergasted to be asked to write an episode – partly because I’ve been so absorbed in the last few series that I’d sort of forgotten that it wasn’t real.