"I found this on the street. The top button makes a loud “click” when pressed in. The device seems to be mostly hollow. What is this thing?"
Answer: "It’s a dog “clicker” for training them."