High-dimensional inference of radio interferometer beam patterns I: parametric model of the HERA beams | Synapse