code: def _check_nodes_have_same_collection(self):
          
          node_collection_items = list(self.node2collection.items())
          first_node, col = node_collection_items[0]
          same_collection = True
          for node, collection in node_collection_items[1:]:
              msg = report_collection_diff(
                  col, collection, first_node.gateway.id, node.gateway.id
              )
              if msg:
                  same_collection = False
                  self.log(msg)
                  if self.config is not None:
                      rep = CollectReport(
                          node.gateway.id, "failed", longrepr=msg, result=[]
                      )
                      self.config.hook.pytest_collectreport(report=rep)
  
          return same_collection
docs: Return True if all nodes have collected the same items.
  
          If collections differ, this method returns False while logging
          the collection differences and posting collection errors to
          pytest_collectreport hook.