code: def _subproc_f(prog):
      cmd = shlex.split(prog)
  
      def f(path):
          p = subprocess.Popen(cmd + [path])
          p.wait()
  
      return f
  
imports: import logging
  import os
  import shlex
  import shutil
  import subprocess
  import sys
  from guild import cli
  from guild import cmd_impl_support
  from guild import run_util
  from guild import util
  from .None import runs_impl
label_desc: Use image node_id 8 for calling a global function with example usage: _subproc_f(prog) and returns: f