code: def _get_tpb_bpg():
      device_id = cupy.cuda.Device()
      numSM = device_id.attributes["MultiProcessorCount"]
      threadsperblock = 512
      blockspergrid = numSM * 20
  
      return threadsperblock, blockspergrid
  
file_path: cupy/cupyx/scipy/signal/_upfirdn.py
imports: from math import ceil
  import cupy
label_desc: Use image node_id 5 for calling a global function with example usage: _get_tpb_bpg() and returns: threadsperblock,  blockspergrid