def render(self, swagger, accepted_media_type=None, renderer_context=None):
    if (not isinstance(swagger, Swagger)):
        return TemplateHTMLRenderer().render(swagger, accepted_media_type, renderer_context)
    self.set_context(renderer_context, swagger)
    return render(renderer_context['request'], self.template, renderer_context)
def render(self, swagger, accepted_media_type=None, renderer_context=None):
    if (not isinstance(swagger, Swagger)):
        return TemplateHTMLRenderer().render(swagger, accepted_media_type, renderer_context)
    self.set_context(renderer_context, swagger)
    return render(renderer_context['request'], self.template, renderer_context)