Private method used to set a list(shape) attribute in the node_def.
(self, attr_name, shapes)
source not stored for this graph (policy: none)