This may be part of an electronic switch with 9 electronic terminals on this unit. There are also 2 screw threads protruding from the rear of the unit. Unit is two metal square shaped boxes, tied together with a piece of string, with separate screw bracket also attached with string. Smaller box has compartment.
Component - Electronic, F1959.2004. The Museum of Transport and Technology (MOTAT).