Lagrangian supersymmetries depending on derivatives. Global analysis and cohomology