<s> '''<STR_LIT>''' <EOL> from subprocess import CalledProcessError , PIPE , Popen <EOL> import tempfile <EOL> def check_output ( * popenargs , ** kwargs ) : <EOL> '''<STR_LIT>''' <EOL> if '<STR_LIT>' in kwargs : <EOL> raise ValueError ( '<STR_LIT>' ) <EOL> process = Popen ( stdout = PIPE , * popenargs , ** kwargs ) <EOL> output , _ = process . communicate ( ) <EOL> retcode = process . poll ( ) <EOL> if retcode : <EOL> cmd = kwargs . get ( "<STR_LIT:args>" ) <EOL> if cmd is None : <EOL> cmd = popenargs [ <NUM_LIT:0> ] <EOL> raise CalledProcessError ( retcode , cmd , output = output ) <EOL> return output <EOL> def temporary_file ( ) : <EOL> """<STR_LIT>""" <EOL> return tempfile . mkstemp ( ) [ <NUM_LIT:1> ] </s>
