code: def create_generate(kind, project, resource, offset):
      
      generate = eval('Generate' + kind.title())
      return generate(project, resource, offset)
docs: A factory for creating `Generate` objects
  
      `kind` can be 'variable', 'function', 'class', 'module' or
      'package'.