code: def _node_product(G, H):
      for u, v in product(G, H):
          yield ((u, v), _dict_product(G.nodes[u], H.nodes[v]))
  
file_path: networkx/networkx/algorithms/operators/product.py
imports: from itertools import product
  import networkx
  from networkx.utils import not_implemented_for
label_desc: Use image node_id 2 for calling a global function with example usage: _node_product(G, H) without return types