code: def _ensure_int(n):
      """Ensure n is integral."""
      return op.index(n)
  
file_path: cugraph/python/nx-cugraph/nx_cugraph/generators/_utils.py
imports: import operator
  import cupy
  import networkx
  import nx_cugraph
  from ..utils import index_dtype
label_desc: Use image node_id 1 for calling a global function with example usage: _ensure_int(n) and returns: op