<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def is_overexposed(ims):
 """Simple test to check if image is overexposed Parameters im: 2d array integer the image Returns ------- overexposed: Bool Is the image overexposed """

    if len(np.shape(ims)) == 3:
        return [is_overexposed(im) for im in ims]

    ims = np.array(ims, int)
    diffbincount = np.diff(np.bincount(np.ravel(ims)))
    overexposed = diffbincount[-1] > np.std(diffbincount)
    return overexposed