The answer is quite complex. The design process is first, starting with a detailed drawing. Next is creating a mold either from 3-D software and a plastics printer or from hand-sculpted clay. From that, they make a mold for the machine parts to make so they are able to pour hot plastic into the mold, cool it, paint it, and ship it out. See the video in the sources below from the Smithsonian.