code: def number_of_isolates(G):
      G = _to_graph(G)
      return _mark_isolates(G).sum().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 5 for calling a global function with example usage: number_of_isolates(G) and returns: _mark_isolates