code: def test_multiple():
      # Verify that we can use the graph matcher multiple times
      edges = [("A", "B"), ("B", "A"), ("B", "C")]
      for g1, g2 in [
          (nx.Graph(), nx.Graph()),
          (nx.DiGraph(), nx.DiGraph()),
      ]:
          g1.add_edges_from(edges)
          g2.add_edges_from(edges)
          g3 = nx.subgraph(g2, ["A", "B"])
          if not g1.is_directed():
              gmA = iso.GraphMatcher(g1, g2)
              gmB = iso.GraphMatcher(g1, g3)
          else:
              gmA = iso.DiGraphMatcher(g1, g2)
              gmB = iso.DiGraphMatcher(g1, g3)
          assert gmA.is_isomorphic()
          g2.remove_node("C")
          if not g1.is_directed():
              gmA = iso.GraphMatcher(g1, g2)
          else:
              gmA = iso.DiGraphMatcher(g1, g2)
          assert gmA.subgraph_is_isomorphic()
          assert gmB.subgraph_is_isomorphic()
          assert gmA.subgraph_is_monomorphic()
          assert gmB.subgraph_is_monomorphic()
  
imports: import importlib.resources
  import os
  import random
  import struct
  import networkx
  from networkx.algorithms import isomorphism
label_desc: Use image node_id 7 for calling a global function with example usage: test_multiple() without return types