code: def logged_command(cmds):
      "helper function to log a command and then run it"
      logger.info(' '.join(cmds))
      os.system(' '.join(cmds)f logged_command(cmds):
      "helper function to log a command and then run it"
      logger.info(' '.join(cmds))
      os.system(' '.join(cmds))
docs: helper function to log a command and then run it