code: def _(G):
      # NetworkX <= 3.2.1 does not check directedness for us
      try:
          return not G.is_directed()
      except Exception:
          return False
  
file_path: cugraph/python/nx-cugraph/nx_cugraph/algorithms/components/connected.py
imports: import cupy
  import networkx
  import pylibcugraph
  from nx_cugraph.convert import _to_undirected_graph
  from nx_cugraph.utils import _groupby, networkx_algorithm, not_implemented_for
label_desc: Use image node_id 3 for calling a global function with example usage: _(G) and returns: unknown, False