code: def update_test(command, outfile, add_magic_str=False):
      if isinstance(command, str):
          print(">", command)
      else:
          print("\n".join(f"> {c}" for c in command))
      result = run_command_and_get_result(command)
      stdout = result.stdout.decode().strip()
      if add_magic_str:
          # add magic string to beginning
          magic_str = "/.*/"
          stdout = magic_str + stdout
          # add magic string after attack
          mid_attack_str = (
              "\n--------------------------------------------- Result 1"
          )
          stdout.replace(mid_attack_str, magic_str + mid_attack_str)
      # write to file
      open(outfile, "w").write(stdout + "\n")
  
imports: from helpers import run_command_and_get_result
  from test_attack import attack_test_params
  from test_augment import augment_test_params
  from test_list import list_test_params
label_desc: Use image node_id 1 for calling a global function with example usage: update_test(command, outfile, add_magic_str) without return types