def save_template(self, name, unlocked=False):
if isinstance(unlocked, str):<EOL><INDENT>unlocked = unlocked.lower() != '<STR_LIT:false>'<EOL><DEDENT>template = self._get_message_template()<EOL>if not unlocked:<EOL><INDENT>template.set_as_saved()<EOL><DEDENT>self._message_templates[name] = (template, self._field_values)<EOL>
Save a message template for later use with `Load template`.

        If saved template is marked as unlocked, then changes can be made to it
        afterwards. By default tempaltes are locked.

        Examples:
        | Save Template | MyMessage |
        | Save Template | MyOtherMessage | unlocked=True |