code: def test_is_k_edge_connected_exceptions():
      pytest.raises(
          nx.NetworkXNotImplemented,
          is_locally_k_edge_connected,
          nx.DiGraph(),
          1,
          2,
          k=0,
      )
      pytest.raises(
          nx.NetworkXNotImplemented,
          is_locally_k_edge_connected,
          nx.MultiGraph(),
          1,
          2,
          k=0,
      )
      pytest.raises(
          ValueError, is_locally_k_edge_connected, nx.Graph(), 1, 2, k=0
      )
  
imports: import itertools
  import random
  import pytest
  import networkx
  from networkx.algorithms.connectivity import k_edge_augmentation
  from networkx.algorithms.connectivity.edge_augmentation import _unpack_available_edges, collapse, complement_edges, is_k_edge_connected, is_locally_k_edge_connected
  from networkx.utils import pairwise
label_desc: Use image node_id 5 for calling a global function with example usage: test_is_k_edge_connected_exceptions() without return types