Partitioning an object so that it has multiple semantic segmentation masks

Suppose I have an object, for this example it is a human body model. I want to produce a segmentation mask in replicator that has a separate mask for the head and the rest of the body. Can this be achieved?