parameters: (args, env=None)
return_statement: return out
docstring: capture(command) - Run the given command (or argv list) in a shell and
      return the standard output.
docstring_summary: capture(command) - Run the given command (or argv list) in a shell and
      return the standard output.
docstring_tokens: capture ( command ) - Run the given command ( or argv list ) in a shell and return the standard output .
function: def capture(args, env=None):
      import subprocess
      """capture(command) - Run the given command (or argv list) in a shell and
      return the standard output."""
      p = subprocess.Popen(args, stdout=subprocess.PIPE, stderr=subprocess.PIPE,
                           env=env)
      out,_ = p.communicate()
      return out
function_tokens: def capture ( args , env = None ) : import subprocess p = subprocess . Popen ( args , stdout = subprocess . PIPE , stderr = subprocess . PIPE , env = env ) out , _ = p . communicate ( ) return out