Just for clarification, the example shown above is part of an ugly approach to add python modules to the server side of addons.
Anyways, I ended up removing that ugly approach from this guide Understanding Dependencies in AYON Addons
For your post, I’d recommend using Addon Dev Docs - Endpoints | AYON Docs and it also provides code examples with screenshots.