code: def get_renderer(self, with_layout=True):
          
          if with_layout and self.is_lti():
              return self._default_renderer_lti
          elif with_layout:
              return self._default_renderer
          else:
              return self._default_renderer_nolayout
docs: Get the default renderer