code: def test_tensor_product_raises():
      with pytest.raises(nx.NetworkXError):
          P = nx.tensor_product(nx.DiGraph(), nx.Graph())
  
imports: import pytest
  import networkx
  from networkx.utils import edges_equal
label_desc: Use image node_id 1 for calling a global function with example usage: test_tensor_product_raises() without return types