def METHOD_NAME(geom):
    bm_edges = geom['edges']
    edges = [(edge.verts[0].index, edge.verts[1].index) for edge in bm_edges]
    bm_faces = geom['faces']
    faces = [[vert.index for vert in face.verts] for face in bm_faces]
    return edges, faces