code: def _(
      G,
      weight="weight",
      resolution=1,
      threshold=0.0000001,
      seed=None,
      *,
      max_level=None,
      dtype=None,
  ):
      # NetworkX allows both directed and undirected, but cugraph only allows undirected.
      return not G.is_directed()
  
imports: import warnings
  import pylibcugraph
  from nx_cugraph.convert import _to_undirected_graph
  from nx_cugraph.utils import _dtype_param, _groupby, _seed_to_int, networkx_algorithm, not_implemented_for
label_desc: Use image node_id 2 for calling a global function with example usage: _(G, weight, resolution, threshold, seed) and returns: unknown