code: def check_output_error_and_retcode(*popenargs, **kwargs):
      
      if 'stdout' in kwargs:
          raise ValueError('stdout argument not allowed, it will be overridden.')
      process = subprocess.Popen(stdout=subprocess.PIPE,
                                 stderr=subprocess.PIPE,
                                 *popenargs, **kwargs)
      output, error = process.communicate()
      retcode = process.poll()
      return output, error, retcode
docs: This function is used to obtain the stdout of a command. It is only used
      internally, recommend using the make_external_call command if you want
      to call external executables.