This is a Traxxas "AA" Battery Holder with an included On/Off switch. Also included is a rubber cover for the switch.
These holders are used as the receiver battery pack for nitro vehicles.