def run(cmd, **kwargs):
    if isinstance(cmd, list):
        cmd = " ".join(pipes.quote(s) for s in cmd)
    kwargs.setdefault('echo', True)
    return invoke_run(cmd, **kwargs)
wrapper around invoke.run that accepts a Popen list
dataset/ETHPy150Open jupyterhub/jupyterhub/tools/tasks.py/run