For lead acid batteries, it's called an "equalizing" charge:
For NiMH, the common method is to use a "discharge tray" which discharges all the cells to a specific setpoint, so that series charging will bring them back to the same level. This covers the methodology: There are NiMH "equalizers" but if you read the instructions, they do the same thing as a "discharge tray" and do NOT overcharge the battery.
I've not heard of equalizing NiCd batteries, although they should work and survive better than NiMH if overcharged.
One of the responsibilities I've assumes is keeping this collection of lead-acid batteries alive since about 1993: The trick is to threaten to soundly thrash anyone that even suggests punching the "equalize" button on the charger: I use a method recommended by a former employee of C&T Tech, manufacturers of the batteries. Instead of overcharging cells that are lagging, I discharge the other cells down to the level of the lowest cell, and then charge them back to 100% normally. It's a somewhat tedious procedure, but it works well. I've only needed to do it twice in 20 years. I also have the EoC set to between 90 and 95% of full charge, in order to reduce outgassing and sulfation. We add water about once every 5 years.