import operator


def face_with_verts(bm, verts, default=None):
    """Find a face in the bmesh with the given verts"""
    for face in bm.faces:
        equal = map(
            operator.eq,
            sorted(verts, key=operator.attrgetter("index")),
            sorted(face.verts, key=operator.attrgetter("index")),
        )
        if len(face.verts) == len(verts) and all(equal):
            return face
    return default