def serializer_by_type_id(self, type_id):
if type_id <= <NUM_LIT:0>:<EOL><INDENT>indx = index_for_default_type(type_id)<EOL>serializer = self._constant_type_ids.get(indx, None)<EOL>if serializer is not None:<EOL><INDENT>return serializer<EOL><DEDENT><DEDENT>return self._id_dic.get(type_id, None)<EOL>
Find and return the serializer for the type-id
:param type_id: type-id the serializer
:return: the serializer