def METHOD_NAME(Lhash, **kwargs):
    Ldata = db.lfunc_lfunctions.lucky({'Lhash': Lhash}, **kwargs)
    if Ldata is None:
        raise KeyError("Lhash '%s' not found in Lfunction table" % (Lhash,))
    return Ldata