How to create a custom Dynamic Results Range Adapter

Hi,
I’ve been trying to read the documentation of senaite on how to create a custom adapter on dynamic results depending on age/sex. I have encountered the following example but I have no idea where to insert this piece of code.

I would appreciate it if someone who has implemented the feature helps me on where exactly I need to insert it.

P.S I’m using docker build senaite-docker-1.3.4-health from Docker Hub to build my docker image.

@ramonski