Improve remove identity recipe
Current remove identity just remove the node.
However this can cause issue for example if the graph begin with the identity node and this identity node otuput is connected to two different inputs. Indeed, this behavior will create a graph with two inputs even thought there is only one.
To fix this I propose to not remove identity if it is a graph input AND its output is connected to multiple nodes.