This is a tool that was requested by the team's art director where they can quickly generate materials and assign them to the selected objects (or in this case faces of the object).
This clip shows generating materials and checking in the hypershade editor
Here you can assingn the materials to the faces (or objects) and change to any color you of your preference for material ID baking