def METHOD_NAME(self, node):
    self.lastcabid_ = -1
    if self.in_cablegroup_:
        self.cablegroups_[-1].cable_indices_.append(
            self.cableid2index_[int(node.get("id"))]
        )
    else:
        cab = self.cables_[self.cableid2index_[int(node.get("id"))]]
        self.lastcabid_ = int(node.get("id"))
        val = node.get("fractAlongParent")
        if val is not None:
            cab.px_ = float(val)
        else:
            cab.px_ = 1.0
        cab.name_ = str(node.get("name"))