How to make printer dice inserts?

I've seen some dice like this, but am completely unsure how they make them and thought they're so cool. I can tell they're printed with a printer of some kind but... How? Anyone have any idea? Is there a name for this?