The optimally sampled galaxy-wide stellar initial mass function - Observational tests and the publicly available GalIMF codeZhiqiang Yan, Tereza Jerabkova and Pavel KroupaA&A, 607 (2017) A126DOI: https://doi.org/10.1051/0004-6361/201730987