It’s a cup holder! Slide the buckle and the leather strap will open and then you can secure a cup by sliding the buckle back.
I had this on my 2012 Model S. It was a $70 accessory. I only used it a few times. If you hadn’t posted this picture, I would have never remembered it again.