code: def is_isolate(G, n):
      G = _to_graph(G)
      index = n if G.key_to_id is None else G.key_to_id[n]
      return not (
          (G.src_indices == index).any().tolist()
          or G.is_directed()
          and (G.dst_indices == index).any().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 1 for calling a global function with example usage: is_isolate(G, n) and returns: unknown