code: def _connected_components(G, symmetrize=None):
      if G.src_indices.size == 0:
          return [{key} for key in G._nodeiter_to_iter(range(len(G)))]
      node_ids, labels = plc.weakly_connected_components(
          resource_handle=plc.ResourceHandle(),
          graph=G._get_plc_graph(symmetrize=symmetrize),
          offsets=None,
          indices=None,
          weights=None,
          labels=None,
          do_expensive_check=False,
      )
      groups = _groupby(labels, node_ids)
      return (
          G._nodearray_to_set(connected_ids)
          for connected_ids in groups.values()
      )
  
file_path: cugraph/python/nx-cugraph/nx_cugraph/algorithms/components/connected.py
imports: import cupy
  import networkx
  import pylibcugraph
  from nx_cugraph.convert import _to_undirected_graph
  from nx_cugraph.utils import _groupby, networkx_algorithm, not_implemented_for
label_desc: Use image node_id 5 for calling a global function with example usage: _connected_components(G, symmetrize) and returns: unknown, unknown