On a Hartman linearization theorem for a class of ODE with impulse effect