def _generate_files(repo_dir, config, template, version):
with unittest.mock.patch('<STR_LIT>', side_effect=_patched_run_hook):<EOL><INDENT>cc_generate.generate_files(repo_dir=repo_dir,<EOL>context={'<STR_LIT>': config,<EOL>'<STR_LIT>': template,<EOL>'<STR_LIT:version>': version},<EOL>overwrite_if_exists=False,<EOL>output_dir='<STR_LIT:.>')<EOL><DEDENT>
Uses cookiecutter to generate files for the project.

    Monkeypatches cookiecutter's "run_hook" to ensure that the temple.yaml file is
    generated before any hooks run. This is important to ensure that hooks can also
    perform any actions involving temple.yaml