Module utilities contain shared code used by multiple plugins. You can write custom module utilities.
You can add a custom module utility by dropping it into a
module_utils directory adjacent to your collection or role, just like any other plugin.
For information on using module utilities, see Using and developing module utilities.