def get_response_dict(self, helper, context, is_formset):
if not isinstance(helper, FormHelper):<EOL><INDENT>raise TypeError('<STR_LIT>')<EOL><DEDENT>attrs = helper.get_attributes(template_pack=self.template_pack)<EOL>form_type = "<STR_LIT>"<EOL>if is_formset:<EOL><INDENT>form_type = "<STR_LIT>"<EOL><DEDENT>response_dict = {<EOL>'<STR_LIT>': self.template_pack,<EOL>'<STR_LIT>' % form_type: attrs['<STR_LIT>'].get("<STR_LIT:action>", '<STR_LIT>'),<EOL>'<STR_LIT>' % form_type: attrs.get("<STR_LIT>", '<STR_LIT>'),<EOL>'<STR_LIT>' % form_type: attrs.get("<STR_LIT>", True),<EOL>'<STR_LIT>' % form_type: attrs['<STR_LIT>'].get("<STR_LIT:class>", '<STR_LIT>'),<EOL>'<STR_LIT>' % form_type: attrs['<STR_LIT>'].get("<STR_LIT:id>", "<STR_LIT>"),<EOL>'<STR_LIT>' % form_type: attrs.get("<STR_LIT>", None),<EOL>'<STR_LIT>': attrs.get("<STR_LIT>", None),<EOL>'<STR_LIT>': attrs.get("<STR_LIT>", None),<EOL>'<STR_LIT>': attrs.get("<STR_LIT>", True),<EOL>'<STR_LIT>': attrs.get("<STR_LIT>", False),<EOL>'<STR_LIT>': attrs.get("<STR_LIT>", False),<EOL>'<STR_LIT>': attrs.get("<STR_LIT>", True),<EOL>'<STR_LIT>': attrs.get("<STR_LIT>", False),<EOL>'<STR_LIT>': attrs.get('<STR_LIT>', []),<EOL>'<STR_LIT>': is_formset,<EOL>'<STR_LIT>' % form_type: attrs.get('<STR_LIT>', '<STR_LIT>'),<EOL>'<STR_LIT>': attrs.get('<STR_LIT>', '<STR_LIT>'),<EOL>'<STR_LIT>': attrs.get('<STR_LIT>', True),<EOL>'<STR_LIT>': attrs.get('<STR_LIT>', '<STR_LIT>'),<EOL>'<STR_LIT>': attrs.get('<STR_LIT>', '<STR_LIT>'),<EOL>'<STR_LIT>': attrs.get('<STR_LIT>', True),<EOL>}<EOL>for attribute_name, value in attrs.items():<EOL><INDENT>if attribute_name not in response_dict:<EOL><INDENT>response_dict[attribute_name] = value<EOL><DEDENT><DEDENT>if '<STR_LIT>' in context:<EOL><INDENT>response_dict['<STR_LIT>'] = context['<STR_LIT>']<EOL><DEDENT>return response_dict<EOL>
Returns a dictionary with all the parameters necessary to render the form/formset in a template.

:param context: `django.template.Context` for the node
:param is_formset: Boolean value. If set to True, indicates we are working with a formset.