Unsaturated polyimide precursors {the unsaturated precursors containing heterocyclic moieties in the main chain}