def check_output(*args, **kwargs):
    proc = subprocess.Popen(stdout=subprocess.PIPE, *args, **kwargs)
    out, _err = proc.communicate()
    retcode = proc.poll()
    if retcode != 0:
        cmd = args[0]
        raise CalledProcessError(retcode, cmd)
    return out
Rough implementation of `subprocess.check_output`, which doesn't exist
dataset/ETHPy150Open eevee/sanpera/sanpera/_api_build.py/check_output