code: def _isolates(G, symmetrize=None) -> cp.ndarray[IndexValue]:
      """Like isolates, but return an array of indices instead of an iterator of nodes."""
      G = _to_graph(G)
      return cp.nonzero(_mark_isolates(G, symmetrize=symmetrize))[0]
  
file_path: cugraph/python/nx-cugraph/nx_cugraph/algorithms/isolate.py
imports: from __future__ import annotations
  from typing import TYPE_CHECKING
  import cupy
  import numpy
  from nx_cugraph.convert import _to_graph
  from nx_cugraph.utils import index_dtype, networkx_algorithm
label_desc: Use image node_id 3 for calling a global function with example usage: _isolates(G, symmetrize) and returns: cp