def execute(*args, **kwargs):
kwargs['<STR_LIT>'] = subprocess.STDOUT<EOL>try:<EOL><INDENT>subprocess.check_output(*args, **kwargs)<EOL><DEDENT>except subprocess.CalledProcessError as error:<EOL><INDENT>print(error.output)<EOL>raise<EOL><DEDENT>
Executes a command and prints the output in case of error.