Artificial intelligent assistant

Bike accessory: what is this for? I’ve been given this bike since it wasn’t used. It has this thing attached to the frame on the rear wheel. Does anyone know what it is for?![accessory](

It's a bracket for holding an old style light like these

![enter image description here](

Photo from Amazon

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy 8b026c4a6d7e3e1baf2557122db0b558