def get_parents(self, node_name: str, return_special_inputs: bool = False) -> list[str]:
        """Get the parents of a node.

        :param node_name: name of the node.
        :return: list of names of nodes that produce one/more inputs of the node.
        """
        parents = [self.ios[i].source for i in self.nodes[node_name].inputs if i != ""]

        if return_special_inputs:
            return parents

        return list(filter(lambda p: not SpecialInput.is_special_input(p), parents))
Get the parents of a node.

        :param node_name: name of the node.
        :return: list of names of nodes that produce one/more inputs of the node.
        
olive/passes/onnx/onnx_dag.py