I happened to see these things and they look like a small candy or popsicle which is pierced by a wire. I don't know if it has several colors just like the other electronic gadgets or parts I have seen.
I don't know what you saw which made you so curious 😆 but in laymen's language a diode is a semiconductor with a cathode and an anode electrode that let the pass current in a single direction.