def METHOD_NAME(self, name, template_data):
    if not self.module.check_mode:
        self.one.template.allocate("NAME = \"" + name + "\"\n" + template_data)
    result = self.get_template_info(self.get_template_by_name(name))
    result['changed'] = True
    return result