code: def run(cmd, data=None, checks=None, region=None, log_error=True,
          log_stdout=False):
      
      try:
          logger.debug(" ".join(str(x) for x in cmd) if not isinstance(cmd, basestring) else cmd)
          _do_run(cmd, checks, log_stdout)
      except:
          if log_error:
              logger.info("error at command")
          raise
docs: Run the provided command, logging details and checking for errors.