def get_index_by_name(table, name):
 for index in table.indexes:
  if (index.name == name):
   return index

def get_index_by_name ( table , name ) : for index in table . indexes : if ( index . name == name ) : return index
find declaratively defined index from table by name .