def MI_check_index_name(name):
if not isinstance(name, string_types):<EOL><INDENT>raise TypeError('<STR_LIT>'<EOL>'<STR_LIT>' % (type(name), name))<EOL><DEDENT>
Check if index name is a valid str or unicode