code: def test_non_disjoint_partition():
      with pytest.raises(nx.NetworkXError):
          G = nx.barbell_graph(3, 0)
          partition = ({0, 1, 2}, {2, 3, 4, 5})
          kernighan_lin_bisection(G, partition)
  
file_path: networkx/networkx/algorithms/community/tests/test_kernighan_lin.py
imports: from itertools import permutations
  import pytest
  import networkx
  from networkx.algorithms.community import kernighan_lin_bisection
label_desc: Use image node_id 6 for calling a global function with example usage: test_non_disjoint_partition() without return types