<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_reader_of_type(type_name):
 """ Create an instance of the reader with the given name. Args: type_name: The name of a reader. Returns: An instance of the reader with the given type. """

    readers = available_readers()

    if type_name not in readers.keys():
        raise UnknownReaderException('Unknown reader: %s' % (type_name,))

    return readers[type_name]()