I've encountered this sentence, but I can't understand what is the function of for
in it. Also, what is the subject for ... is to understand ...
But it is worth trying, for to understand the initial shock of those images is to understand the extraordinary power and magic of cinema, the unique, hypnotic quality that has made film the most dynamic, effective art form of the 20th century.