ID map node in Shader editor?

Does anyone know how to setup a IDmap nodegroup that you can plug a id map to and use to create a mask and can work with a lot of colors?

Object Info node > Random Output

Thanks for the reply. No worries. Found this:

Should have searched the forums properly. I am curious why we don’t have a dedicated id mask node though. The compositor has one.