def METHOD_NAME(files, gs_path, user, **kwargs):
    with TemporaryDirectory() as temp_dir_name:
        for filename, content in _format_files_content(files, **kwargs):
            with open(f'{temp_dir_name}/{filename}', 'w') as f:
                f.write(content)
        mv_file_to_gs(f'{temp_dir_name}/*', gs_path, user)