def _start_subprocess_for_result(cmd):
    task = subprocess.Popen(cmd, stdout=subprocess.PIPE,
                            stderr=subprocess.PIPE)
    out, err = task.communicate()
    return out, err
Test the moments of binomial nodes.
dataset/ETHPy150Open oppia/oppia/scripts/pre_push_hook.py/_start_subprocess_for_result--crossover with--dataset/ETHPy150Open bayespy/bayespy/bayespy/inference/vmp/nodes/tests/test_binomial.py/TestBinomial.test_moments