def arr_from_img_storage(im):
    w,h=im.size
    arr=np.asarray(im.getdata(), dtype=np.uint8)
    c = (w*h) / np.product(arr.size)
    return arr.reshape(h,w,c).transpose(2,1,0)

# gets array (in format used for testing) from an Image
dataset/ETHPy150Open woshialex/diagnose-heart/CNN_A/utils.py/arr_from_img_storage/swapped operands of `/`