code: def get_pair(dictionary, n1, n2):
      if (n1, n2) in dictionary:
          return dictionary[n1, n2]
      else:
          return dictionary[n2, n1]
  
imports: from itertools import chain, combinations, product
  import pytest
  import networkx
label_desc: Use image node_id 1 for calling a global function with example usage: get_pair(dictionary, n1, n2) and returns: dictionary, dictionary