parameters: (self, writer_name)
docstring: Set `self.writer` by name.
docstring_summary: Set `self.writer` by name.
docstring_tokens: Set self . writer by name .
function: def set_writer(self, writer_name):
          """Set `self.writer` by name."""
          writer_class = writers.get_writer_class(writer_name)
          self.writer = writer_class()
function_tokens: def set_writer ( self , writer_name ) : writer_class = writers . get_writer_class ( writer_name ) self . writer = writer_class ( )