def METHOD_NAME(self, graph):
    # "duplicated" means: op_type, input and attribute are same
    # while attr is un-hashable so doesn't include it when grouping nodes
    # we do hash the tensor data of const values
    nodes_groups = self._group_nodes_by_type_inputs(graph)
    for _, nodes_group in nodes_groups.items():
        if self._skip_node_type(nodes_group[0]):
            continue
        self._del_nodes_if_duplicated(nodes_group, graph)