parameters: (self, *args, **kwargs)
return_statement: return output
docstring: Run Popen(*args) and return its output as a byte string.
  
      Python 2.7 has subprocess.check_output. This is essentially the same
      except that, as a convenience, all the positional args are used as
      command arguments and the |elevate_privilege| kwarg is supported.
  
      Args:
        *args: sequence of program arguments
        elevate_privilege: Run the command with elevated privileges.
      Raises:
        CalledProcessError if the program returns non-zero exit status.
      Returns:
        output as a byte string.
docstring_summary: Run Popen(*args) and return its output as a byte string.
docstring_tokens: Run Popen ( * args ) and return its output as a byte string .
function: def _check_output(self, *args, **kwargs):
      """Run Popen(*args) and return its output as a byte string.
  
      Python 2.7 has subprocess.check_output. This is essentially the same
      except that, as a convenience, all the positional args are used as
      command arguments and the |elevate_privilege| kwarg is supported.
  
      Args:
        *args: sequence of program arguments
        elevate_privilege: Run the command with elevated privileges.
      Raises:
        CalledProcessError if the program returns non-zero exit status.
      Returns:
        output as a byte string.
      """
      command_args = [str(a) for a in args]
  
      if os.path.sep not in command_args[0]:
        qualified_command = FindExecutable(command_args[0])
        assert qualified_command, 'Failed to find %s in path' % command_args[0]
        command_args[0] = qualified_command
  
      if kwargs.get('elevate_privilege'):
        command_args = self._elevate_privilege_for_cmd(command_args)
  
      logging.debug(' '.join(command_args))
      process = subprocess.Popen(
          command_args, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
      output = process.communicate()[0]
      retcode = process.poll()
      if retcode:
        raise CalledProcessError(retcode, command_args)
      return output
function_tokens: def _check_output ( self , * args , * * kwargs ) : command_args = [ str ( a ) for a in args ] if os . path . sep not in command_args [ 0 ] : qualified_command = FindExecutable ( command_args [ 0 ] ) assert qualified_command , 'Failed to find %s in path' % command_args [ 0 ] command_args [ 0 ] = qualified_command if kwargs . get ( 'elevate_privilege' ) : command_args = self . _elevate_privilege_for_cmd ( command_args ) logging . debug ( ' ' . join ( command_args ) ) process = subprocess . Popen ( command_args , stdout = subprocess . PIPE , stderr = subprocess . STDOUT ) output = process . communicate ( ) [ 0 ] retcode = process . poll ( ) if retcode : raise CalledProcessError ( retcode , command_args ) return output