docs: def get_layout_template(self, template_name=None):
          """
          Returns the layout template to use when rendering the form to HTML.
  
          Preference of template selection:
  
          1. Provided method argument `template_name`
          2. Form class property `layout_template`
          3. Globally defined default template from `defaults.LAYOUT_DEFAULT_TEMPLATE`
  
          :param template_name: Optional template to use instead of other configurations.
          :return: Template name to use when rendering the form.
          """
          if template_name:
              return template_name
  
          if self.layout_template:
              return self.layout_template
  
          return defaults.LAYOUT_DEFAULT_TEMPLATE