code: def test_intersection_node_sets_different():
      G = nx.Graph()
      H = nx.Graph()
      G.add_nodes_from([1, 2, 3, 4, 7])
      G.add_edge(1, 2)
      G.add_edge(2, 3)
      H.add_nodes_from([1, 2, 3, 4, 5, 6])
      H.add_edge(2, 3)
      H.add_edge(3, 4)
      H.add_edge(5, 6)
      I = nx.intersection(G, H)
      assert set(I.nodes()) == {1, 2, 3, 4}
      assert sorted(I.edges()) == [(2, 3)]
  
imports: import os
  import pytest
  import networkx
  from networkx.classes.tests import dispatch_interface
  from networkx.utils import edges_equal
label_desc: Use image node_id 3 for calling a global function with example usage: test_intersection_node_sets_different() without return types