def render(self, **kwargs):
if isinstance(self._parent, GeoJson):<EOL><INDENT>keys = tuple(self._parent.data['<STR_LIT>'][<NUM_LIT:0>]['<STR_LIT>'].keys())<EOL>self.warn_for_geometry_collections()<EOL><DEDENT>elif isinstance(self._parent, TopoJson):<EOL><INDENT>obj_name = self._parent.object_path.split('<STR_LIT:.>')[-<NUM_LIT:1>]<EOL>keys = tuple(self._parent.data['<STR_LIT>'][obj_name][<EOL>'<STR_LIT>'][<NUM_LIT:0>]['<STR_LIT>'].keys())<EOL><DEDENT>else:<EOL><INDENT>raise TypeError('<STR_LIT>'<EOL>'<STR_LIT>')<EOL><DEDENT>keys = tuple(x for x in keys if x not in ('<STR_LIT>', '<STR_LIT>'))<EOL>for value in self.fields:<EOL><INDENT>assert value in keys, ('<STR_LIT>'<EOL>'<STR_LIT>'.format(value, keys))<EOL><DEDENT>super(GeoJsonTooltip, self).render(**kwargs)<EOL>
Renders the HTML representation of the element.