def check_type(self, type):
if type in TYPES:<EOL><INDENT>return type<EOL><DEDENT>tdict = dict(zip(TYPES,TYPES))<EOL>tdict.update({<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT:bar>': '<STR_LIT>',<EOL>'<STR_LIT>': '<STR_LIT:p>',<EOL>'<STR_LIT>': '<STR_LIT:v>',<EOL>'<STR_LIT>': '<STR_LIT:s>',<EOL>'<STR_LIT>': '<STR_LIT:r>',<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>})<EOL>assert type in tdict, '<STR_LIT>'%type<EOL>return tdict[type]<EOL>
Check to see if the type is either in TYPES or fits type name

        Returns proper type