add fake group api

Instead of defining this twice as a static method, make it a module-level function.