Correct it as shown in examples 1 and 2.

Literal

Examples 1, 2 [like-のように] correct [imperative-せよ].

A terse instruction using the literary imperative せよ (classical imperative of する). 例1,2 uses Arabic numerals with a Japanese comma (,). ~のように ('in the manner of') points to the examples as models. This kind of imperative + example-reference pattern is standard in textbooks, manuals, and exam instructions.