code: def _get_max_gdy():
      device_id = cupy.cuda.Device()
      return device_id.attributes["MaxGridDimY"]
  
file_path: cupy/cupyx/scipy/signal/_upfirdn.py
imports: from math import ceil
  import cupy
label_desc: Use image node_id 4 for calling a global function with example usage: _get_max_gdy() and returns: device_id