code: def _run_cmd(cmd, out):
      with open(out, "w") as f:
          subprocess.check_call(cmd, stdout=f)
  
      return out
  
imports: import subprocess
  import yatest
label_desc: Use image node_id 1 for calling a global function with example usage: _run_cmd(cmd, out) and returns: out