<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def otsu(fpath):
 """ Returns value of otsu threshold for an image """

    img = imread(fpath, as_grey=True)
    thresh = skimage.filter.threshold_otsu(img)

    return thresh