'Return a string representing a rendered HTML form, possibly bound to
either the input or output data.
In the absence of the View having an associated form then return None.'

def get_rendered_html_form(self, data, view, method, request):

    serializer = getattr(data, u'serializer', None)
    if (serializer and (not getattr(serializer, u'many', False))):
        instance = getattr(serializer, u'instance', None)
        if isinstance(instance, Page):
            instance = None
    else:
        instance = None
    if ((request.method == method) and (serializer is not None)):
        try:
            kwargs = {u'data': request.data}
        except ParseError:
            kwargs = {}
        existing_serializer = serializer
    else:
        kwargs = {}
        existing_serializer = None
    with override_method(view, request, method) as request:
        if (not self.show_form_for_method(view, method, request, instance)):
            return
        if (method in (u'DELETE', u'OPTIONS')):
            return True
        has_serializer = getattr(view, u'get_serializer', None)
        has_serializer_class = getattr(view, u'serializer_class', None)
        if (((not has_serializer) and (not has_serializer_class)) or (not any((is_form_media_type(parser.media_type) for parser in view.parser_classes)))):
            return
        if (existing_serializer is not None):
            try:
                return self.render_form_for_serializer(existing_serializer)
            except TypeError:
                pass
        if has_serializer:
            if (method in (u'PUT', u'PATCH')):
                serializer = view.get_serializer(instance=instance, **kwargs)
            else:
                serializer = view.get_serializer(**kwargs)
        elif (method in (u'PUT', u'PATCH')):
            serializer = self._get_serializer(view.serializer_class, view, request, instance=instance, **kwargs)
        else:
            serializer = self._get_serializer(view.serializer_class, view, request, **kwargs)
        return self.render_form_for_serializer(serializer)
