<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def mesh_to_BVH(mesh):
 """ Create a BVHModel object from a Trimesh object Parameters mesh : Trimesh Input geometry Returns bvh : fcl.BVHModel BVH of input geometry """

    bvh = fcl.BVHModel()
    bvh.beginModel(num_tris_=len(mesh.faces),
                   num_vertices_=len(mesh.vertices))
    bvh.addSubModel(verts=mesh.vertices,
                    triangles=mesh.faces)
    bvh.endModel()
    return bvh