code: def render_form_errors(form, error_types="non_field_errors", **kwargs):
      
      renderer_cls = get_form_renderer(**kwargs)
      return renderer_cls(form, **kwargs).render_errors(error_types)
docs: Render form errors to a Bootstrap layout