code: def monitor_print(*args):
      print("packer build monitor:", *args, flush=True)
  
imports: import re
  import subprocess
  import sys
  import time
label_desc: Use image node_id 1 for calling a global function with example usage: monitor_print() without return types