def IndexDefinitionsToKeys(indexes):
 keyset = set()
 if (indexes is not None):
  if indexes.indexes:
   for index in indexes.indexes:
    keyset.add(IndexToKey(index))
 return keyset

def IndexDefinitionsToKeys ( indexes ) : keyset = set ( ) if ( indexes is not None ) : if indexes . indexes : for index in indexes . indexes : keyset . add ( IndexToKey ( index ) ) return keyset
convert indexdefinitions to set of keys .