TrainingExtensions/torch/test/python/test_onnx_utils.py
def check_onnx_node_name_uniqueness(onnx_model):
        """
        utility to check if node names are unique
        """
        onnx_node_names = [node.name for node in onnx_model.graph.node]
        assert len(onnx_node_names) == len(set(onnx_node_names)), f'list size mismatch, check if names are unique'

        utility to check if node names are unique
        
utility to check if node names are unique
utility to check if node names are unique
def check_onnx_node_name_uniqueness(onnx_model):
        onnx_node_names = [node.name for node in onnx_model.graph.node]
        assert len(onnx_node_names) == len(set(onnx_node_names)), f'list size mismatch, check if names are unique'
def check_onnx_node_name_uniqueness ( onnx_model ) : onnx_node_names = [ node . name for node in onnx_model . graph . node ] assert len ( onnx_node_names ) == len ( set ( onnx_node_names ) ) , f'list size mismatch, check if names are unique'
utility to check if node names are unique
utility to check if node names are unique
"""
        utility to check if node names are unique
        """
onnx_model