In the UK, an engine that was temporarily attached to the front of a train to assist with the ascent of an incline was called a pilot locomotive.
Adding locomotives in the middle of the train has the distinct advantage of applying the helper power to only part of the train, thus limiting the maximum drawbar pull applied to the first car of the train to a safe level.