def _replace_input_names(models: list[ModelProto], name_sharing_dict: dict[tuple[str, int], str]):
    """Replace the names of node inputs from the models by the names in the name_sharing_dict."""
    for i in range(len(models)):
        for node in models[i].graph.node:
            for j in range(len(node.input)):
                name_id_pair = (node.input[j], i)
                if name_id_pair in name_sharing_dict:
                    node.input[j] = name_sharing_dict[name_id_pair]
Replace the names of node inputs from the models by the names in the name_sharing_dict.
olive/passes/onnx/merge_decoders.py