def create_template(self, s, provider_name=None):
        """Creates a template from the given string based on the specified provider or the provider with
        highest precedence.

        Args:
            s: The string to convert to a template.
            provider_name: The name of the provider to use to create the template.
        """
        if provider_name is None:
            provider_name = self.supported_providers[0]
        return template_exception_handler(
            lambda: self.get_provider(provider_name).create_template(s),
            self.error_context
        )
def create_template ( self , s , provider_name = None ) : if provider_name is None : provider_name = self . supported_providers [ 0 ] return template_exception_handler ( lambda : self . get_provider ( provider_name ) . create_template ( s ) , self . error_context )
Creates a template from the given string based on the specified provider or the provider with
        highest precedence.

        Args:
            s: The string to convert to a template.
            provider_name: The name of the provider to use to create the template.