def shave_batch_LFs(inLFs, border=(3, 3)):
    """
    Shave the input light field by a given border.

    :param inLFs:  a batch of input light fields of
                   size: [B, H, W, S, T, C]
    :param border: border values

    :return:       shaved light field
    """
    h_border, w_border = border
    if (h_border != 0) and (w_border != 0):
        shavedLFs = inLFs[:, h_border:-h_border, w_border:-w_border, :, :, :]
    elif (h_border != 0) and (w_border == 0):
        shavedLFs = inLFs[:, h_border:-h_border, :, :, :, :]
    elif (h_border == 0) and (w_border != 0):
        shavedLFs = inLFs[:, :, w_border:-w_border, :, :, :]
    else:
        shavedLFs = inLFs[:, :, :, :, :, :]
    return shavedLFs