def _create_collection_hub_node(self, member_label_name, hub_id): hub_node_label = self._get_hub_node_label_name(member_label_name) hub_node = Node(hub_node_label, id=hub_id) hub_node._is_collectionhub = True hub_node.__primarylabel__ = hub_node_label hub_node.__primarykey__ = "id" for lbl in self.config_list_collection_anchor_extra_labels: hub_node.add_label(lbl) if self.config_str_collection_anchor_attach_list_members_label: hub_node.add_label(member_label_name) return hub_node