parameters: (cmd, cwd = None, env = None, timeout = TIMEOUT,
              **kwargs)
docstring: Run the shell command.
  
    cmd -- the shell command.
    cwd -- the dir to chdir to before.
docstring_summary: Run the shell command.
docstring_tokens: Run the shell command .
function: def run_command(cmd, cwd = None, env = None, timeout = TIMEOUT,
              **kwargs):
    """Run the shell command.
  
    cmd -- the shell command.
    cwd -- the dir to chdir to before.
    """
    if cwd is not None:
      cwd = str(cwd)
    if env:
      env = {k: str(v) for k, v in env.items()}
    try:
      returncode = subprocess.call(cmd,
                                   cwd = cwd, env = env, timeout = timeout,
                                   **kwargs)
      return returncode == 0
    except getattr(__builtins__,'FileNotFoundError', IOError) as e:
      print(e, file = sys.stderr)
      return False
function_tokens: def run_command ( cmd , cwd = None , env = None , timeout = TIMEOUT , * * kwargs ) : if cwd is not None : cwd = str ( cwd ) if env : env = { k : str ( v ) for k , v in env . items ( ) } try : returncode = subprocess . call ( cmd , cwd = cwd , env = env , timeout = timeout , * * kwargs ) return returncode == 0 except getattr ( __builtins__ , 'FileNotFoundError' , IOError ) as e : print ( e , file = sys . stderr ) return False