Given a pin on this node, which can be a terminal node (entry/return), or a subgraph/ function reference node, return the pin matching it on the other side. E.g. if given an input pin on a terminal return node, return the output pin on the reference node in the graph above. If the pin isn't owned by this node, then a nullptr is returned.