A configurable battery holder which can either be created as a single piece or as multiple pieces that fit in each other as a puzzle.
To configure use OpenScad, you just open the .scad file and use the customizer to generate your configuration:
I also included some pregenerated models and print files in case some of them fit your needs.
I printed this successfully using 0.4 mm nozzle, 0.2 mm layer height and infill of 15%.
The author marked this model as their own original creation.