code: def _get_node_key(self, node_dict_item):
          
          s = tuple(sorted(node_dict_item['sources']))
          t = tuple(sorted(node_dict_item['targets']))
          return (s, t)
docs: Return a tuple of sorted sources and targets given a node dict.