code: def gpu_nms_wrapper(thresh, device_id):
      def _nms(dets):
          return gpu_nms(dets, thresh, device_id)
  
      if gpu_nms is not None:
          return _nms
      else:
          return cpu_nms_wrapper(thresh)
  
imports: import numpy
  from ..cython.cpu_nms import cpu_nms
label_desc: Use image node_id 3 for calling a global function with example usage: gpu_nms_wrapper(thresh, device_id) and returns: gpu_nms, _nms, cpu_nms_wrapper