def get_graph_idx(self, name: str) -> int:
        """Get the index of the graph containing the input/output or node."""
        if name in self.ios:
            return self.ios[name].graph_idx
        if name in self.nodes:
            return self.nodes[name].graph_idx
        raise ValueError(f"{name} does not exist in the graph.")
Get the index of the graph containing the input/output or node.
olive/passes/onnx/onnx_dag.py