code: def strongly_connected_components(G):
      G = _to_directed_graph(G)
      if G.src_indices.size == 0:
          return [{key} for key in G._nodeiter_to_iter(range(len(G)))]
      labels = _strongly_connected_components(G)
      groups = _groupby(labels, cp.arange(len(G), dtype=index_dtype))
      return (
          G._nodearray_to_set(connected_ids)
          for connected_ids in groups.values()
      )
  
file_path: cugraph/python/nx-cugraph/nx_cugraph/algorithms/components/strongly_connected.py
imports: import cupy
  import networkx
  import pylibcugraph
  from nx_cugraph.convert import _to_directed_graph
  from nx_cugraph.utils import _groupby, index_dtype, networkx_algorithm, not_implemented_for
label_desc: Use image node_id 2 for calling a global function with example usage: strongly_connected_components(G) and returns: unknown, unknown