code: def edge_compat(g1, g2, e1, e2):
      """Edge compatibility function for isomorphism tests"""
      return g1.es[e1]["color"] == g2.es[e2]["color"]
  
imports: import unittest
  from random import shuffle
  from igraph import Graph
label_desc: Use image node_id 2 for calling a global function with example usage: edge_compat(g1, g2, e1, e2) and returns: unknown