How to identify part subtrees

It is common for CAD heirarchies to be made of sub-trees where each subtree represents a part.

I.e. there are collections of nodes in the hierarchy which all are associated to the same part, relative to some root node.

Is there a way we can identify if a given node is the root of such a subtree agnosticaly from the original CAD file?