Bone.convert_local_to_pose
The use case for this method is quite obscure and difficult to understand without an example. Despite how big looks, this is actually the simplest example that makes sense.
draw_view3d