<s> from tiget . plugins import plugins <EOL> def model_type ( name ) : <EOL> for plugin in plugins . values ( ) : <EOL> try : <EOL> return plugin . models [ name . lower ( ) ] <EOL> except KeyError : <EOL> pass <EOL> raise TypeError <EOL> def dict_type ( arg ) : <EOL> try : <EOL> key , value = arg . split ( '<STR_LIT:=>' , <NUM_LIT:1> ) <EOL> except ValueError : <EOL> raise TypeError ( '<STR_LIT>' . format ( arg ) ) <EOL> return ( key , value ) </s>
