def action_print(reader, *args):
arg_count = len(args)<EOL>if arg_count == <NUM_LIT:0>:<EOL><INDENT>stop_after = <NUM_LIT:0><EOL><DEDENT>elif arg_count == <NUM_LIT:1>:<EOL><INDENT>stop_after = int(args[<NUM_LIT:0>])<EOL><DEDENT>else:<EOL><INDENT>raise RuntimeError("<STR_LIT>")<EOL><DEDENT>for i, record in enumerate(reader, <NUM_LIT:1>):<EOL><INDENT>print(record.to_message())<EOL>if i == stop_after:<EOL><INDENT>break<EOL><DEDENT><DEDENT>
Simply print the Flow Log records to output.