code: def test_raises_on_directed_and_multigraphs(f, graph_constructor):
      G = graph_constructor([(0, 1), (1, 2)])
      with pytest.raises(nx.NetworkXNotImplemented):
          f(G)
  
file_path: networkx/networkx/algorithms/approximation/tests/test_maxcut.py
imports: import random
  import pytest
  import networkx
  from networkx.algorithms.approximation import maxcut
label_desc: Use image node_id 1 for calling a global function with example usage: test_raises_on_directed_and_multigraphs(f, graph_constructor) without return types