<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def create_writer_of_type(type_name):
 """ Create an instance of the writer with the given name. Args: type_name: The name of a writer. Returns: An instance of the writer with the given type. """

    writers = available_writers()

    if type_name not in writers.keys():
        raise UnknownWriterException('Unknown writer: %s' % (type_name,))

    return writers[type_name]()