

def mk_sample_image(dst, w, h, ch):
    if os.path.exists(dst):
        return
    dat = (np.random.rand(h, w, ch) * 255)
    img = np.array(dat, dtype=np.uint8)
    cv2.imwrite(img, img)

dataset/ETHPy150Open dthpham/butterflow/tests/test_motion.py mk_sample_image/VarMisuse@69/74 `dst`->`img`