If you want to use it in a plugin, the easiest method is to include the file (using require_once) from your qa-plugin.php file.
If you don't have a specific plugin to put it in, you could cheat and make your own. Add a directory in qa-plugins/ then add your metadata.json file with some basic valid info, plus a qa-plugin.php that has your function in it (or uses require_once to include an external file with the function).