code: def runCommand(commandline):
      """
      Run a command and raise RuntimeError if it fails. Output is suppressed
      unless the command fails.
      """
      fd = os.popen(commandline, "r")
      data = fd.read()
      xit = fd.close()
      if xit is not None:
          sys.stdout.write(data)
          raise RuntimeError("command failed: %s" % (commandline,))
  
      if VERBOSE:
          sys.stdout.write(data)
          sys.stdout.flush()
  
imports: import platform, os, sys, getopt, textwrap, shutil, stat, time, pwd, grp
label_desc: Use image node_id 17 for calling a global function with example usage: runCommand(commandline) without return types