Flight crews practice this exact scenario as part of their training. If I’m not mistaken, if the incident happens below a certain speed the best call is to abort the takeoff. If it happens above that speed, it’s safer to continue the climb and deal with it as an in-flight emergency.
the exact speed depends on factors such as aircraft weight, runway length,weather, etc. and is calculated separately before each takeoff.
this the type of crew I’d be happy to fly with