Help me add badges in product listing page depending on product tag

I need to add badges on products of the shop page. And the badges need to show depending on product tags.