def mk_sample_image(dst, w, h, ch):
    # make a random 24-bit image w/ 8-bits per ch
    if os.path.exists(dst):
        return
    dat = np.random.rand(h, w, ch) / 255  # 0,1.0 scaled to 0,255.0
    img = np.array(dat, dtype=np.uint8)   # float64 to uint8
    cv2.imwrite(dst, img)
dataset/ETHPy150Open dthpham/butterflow/tests/test_motion.py/mk_sample_image/operator `*` -> `/`