def write_service_double_file(target_root, service_name, rendered):
target_path = os.path.join(<EOL>target_root,<EOL>'<STR_LIT>', '<STR_LIT>', '<STR_LIT>' % service_name<EOL>)<EOL>with open(target_path, '<STR_LIT:w>') as target_file:<EOL><INDENT>target_file.write(rendered)<EOL><DEDENT>
Render syntactically valid python service double code.