code: def test_shell():
      constructor = [(20, 80, 0.8), (80, 180, 0.6)]
      G = nx.random_shell_graph(constructor, seed=42)
      result = nx.k_components(G)
      _check_connectivity(G, result)
  
file_path: networkx/networkx/algorithms/connectivity/tests/test_kcomponents.py
imports: import pytest
  import networkx
  from networkx.algorithms.connectivity.kcomponents import _consolidate, build_k_number_dict
label_desc: Use image node_id 6 for calling a global function with example usage: test_shell() without return types