A function that returns the normally hidden `GeneratorFunction` constructor