The only thing which works is: pip install dynamicprompts and restart the GUI. But this is not persistent. I have to do this each time after pod startup.
A custom script for AUTOMATIC1111/stable-diffusion-webui to implement a tiny template language for random prompt generation - adieyal/sd-dynamic-prompts