I know it's a private helper function in the tests but a code comment/docstring would help here.