cherrypick function from https://github.com/mesolitica/malaya to avoid dependency hell
Primary LanguagePython