'Do final translation of `self.document` into `self.output`.  Called
from `write`.  Override in subclasses.
Usually done with a `docutils.nodes.NodeVisitor` subclass, in
combination with a call to `docutils.nodes.Node.walk()` or
`docutils.nodes.Node.walkabout()`.  The ``NodeVisitor`` subclass must
support all standard elements (listed in
`docutils.nodes.node_class_names`) and possibly non-standard elements
used by the current Reader as well.'

def translate(self):

    raise NotImplementedError('subclass    must    override    this    method')
