code: def isolates(G):
      G = _to_graph(G)
      return G._nodeiter_to_iter(iter(_isolates(G).tolist()))
  
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 4 for calling a global function with example usage: isolates(G) and returns: G