code: def _capture_stdout(argv):
      import subprocess
  
      p = subprocess.Popen(argv, stdout=subprocess.PIPE)
      return p.communicate()[0]
  
imports: import sys
  import os
  from os.path import exists, basename, splitext
  import re
  import codecs
  import logging
  import optparse
  import json
label_desc: Use image node_id 10 for calling a global function with example usage: _capture_stdout(argv) and returns: p