code: def create_missing(self):
          
          super(ProvisioningTemplate, self).create_missing()
          if (getattr(self, 'snippet', None) is False and
                  not hasattr(self, 'template_kind')):
              self.template_kind = TemplateKind(self._server_config, id=1)
docs: Customize the process of auto-generating instance attributes.
  
          Populate ``template_kind`` if:
  
          * this template is not a snippet, and
          * the ``template_kind`` instance attribute is unset.