code: def run(cmd):
      """Run the given command.
  
      Raises OSError is the command returns a non-zero exit status.
      """
      log.debug("running '%s'", cmd)
      fixed_cmd = cmd
      if sys.platform == "win32" and cmd.count('"') > 2:
          fixed_cmd = '"' + cmd + '"'
      retval = os.system(fixed_cmd)
      if hasattr(os, "WEXITSTATUS"):
          status = os.WEXITSTATUS(retval)
      else:
          status = retval
      if status:
          raise OSError(status, "error running '%s'" % cmd)
  
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 11 for calling a global function with example usage: run(cmd) without return types