def set_output_format(self, format):
        """ Set the output format for the class instance. """
        try:
            self.serializer = self.output_formats[format.lower()]
        except __HOLE__:
            raise KeyError('Invalid Output Format: "%s". Use one of %s.' \
                               % (format, self.output_formats.keys()))
        return self
dataset/ETHPy150Open isnowfy/pydown/markdown/__init__.py/Markdown.set_output_format