class_docstr: Svg related methods
class_docstr_tok: ["Svg","related","methods"]
docstr: Last thing to do before rendering
docstr_tok: ["Last","thing","to","do","before","rendering"]
code: def render(self, is_unicode=False, pretty_print=False):
      """Last thing to do before rendering"""
      for f in self.graph.xml_filters:
          self.root = f(self.root)
      args = {"encoding": "utf-8"}
  
      svg = b""
      if etree.lxml:
          args["pretty_print"] = pretty_print
  
      if not self.graph.disable_xml_declaration:
          svg = b"<?xml version='1.0' encoding='utf-8'?>\n"
  
      if not self.graph.disable_xml_declaration:
          svg += b"\n".join(
              [
                  etree.tostring(pi, **args)
                  for pi in self.processing_instructions
              ]
          )
  
      svg += etree.tostring(self.root, **args)
  
      if self.graph.disable_xml_declaration or is_unicode:
          svg = svg.decode("utf-8")
      return svg
  
imports: from __future__ import division
  import io
  import json
  import os
  from datetime import date, datetime
  from math import pi
  from numbers import Number
  from urllib.parse import quote_plus
  from pygal import __version__
  from pygal.etree import etree
  from pygal.util import coord_abs_project, coord_diff, coord_dual, coord_format, coord_project, minify_css, template
label_desc: Use image node_id 14 for calling the Svg obj's underlying member method code with example usage: obj.render(is_unicode, pretty_print) and returns: svg