def get_subprocess_output(command, log):
    with tempfile.TemporaryFile('rw') as stdout_f:
        proc = subprocess.Popen(command, close_fds=True,
                                stdout=stdout_f, stderr=subprocess.PIPE)
        proc.wait()
        err = proc.stderr.read()
        if err:
            log.debug("Error while running {0} : {1}".format(" ".join(command),
                                                             err))

        stdout_f.seek(0)
        output = stdout_f.read()
    return output
Get path to local copy of EEGMMI dataset URL
dataset/ETHPy150Open serverdensity/sd-agent/utils/subprocess_output.py/get_subprocess_output--crossover with--dataset/ETHPy150Open mne-tools/mne-python/mne/datasets/eegbci/eegbci.py/data_path