Product Manifold Representations for Learning on Biological Pathways