A generalization of 2-Baer groups