It's an old 'chestnut', the engine fail around the SID. It is something you need to have at the back of your mind for every departure where there is a significant obstacle/terrain, to know when you are 'past it' (so the gradient may not still be required) and to know a 'safe' route if the donk goes !IMC! and it is basically normally just commonsense (may I say 'airmanship'?). You have to rely on a combination of local knowledge and hopefully a decent chart and with any luck a crafty look out of the window. One example of a problem area would be where the SID says, say, ahead to 1.5 miles and turn right xxx (which avoids terrain ahead but actually takes you towards a ridge of hills a bit further away - but not a 2-engine problem) and the emergency turn says 90 secs from start of roll turn left to heading xxx - and your donk quits half-way round the right turn. Your call, Captain?
Best to have something in mind!
Very few E T procedures are WRITTEN for failure at more than one point, CMF is one case I can think of.