def _get_indexes(self, schema, **kwargs):
<EOL>ret = {}<EOL>rs = self._query('<STR_LIT>'.format(self._normalize_table_name(schema)), **kwargs)<EOL>if rs:<EOL><INDENT>for r in rs:<EOL><INDENT>iname = r['<STR_LIT:name>']<EOL>ret.setdefault(iname, [])<EOL>indexes = self._query('<STR_LIT>'.format(r['<STR_LIT:name>']), **kwargs)<EOL>for idict in indexes:<EOL><INDENT>ret[iname].append(idict['<STR_LIT:name>'])<EOL><DEDENT><DEDENT><DEDENT>return ret<EOL>
return all the indexes for the given schema