def METHOD_NAME(img, size, interpolate, channel_first, imresize):
    # after-process for imread. resize and transpose img.
    if size is not None:
        img = imresize(img, size, interpolate=interpolate)
    if channel_first and len(img.shape) == 3:
        img = img.transpose((2, 0, 1))
    return img