<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def create_generate(kind, project, resource, offset):
 """A factory for creating `Generate` objects `kind` can be 'variable', 'function', 'class', 'module' or 'package'. """

    generate = eval('Generate' + kind.title())
    return generate(project, resource, offset)