A small enclosure for a voltage regulator based on an XL4015. It has holes for ventilation.
It fits boards like these:
https://www.amazon.com/gp/product/B079N9BFZC
The author hasn't provided the model origin yet.