Filling flexible bags not having a particular shape