code: def nonempty_bbox(boxes, min_size=0, return_mask=False):
      w = boxes[:, 2] - boxes[:, 0]
      h = boxes[:, 3] - boxes[:, 1]
      mask = paddle.logical_and(h > min_size, w > min_size)
      if return_mask:
          return mask
      keep = paddle.nonzero(mask).flatten()
      return keep
  
imports: import math
  import paddle
  import numpy
label_desc: Use image node_id 7 for calling a global function with example usage: nonempty_bbox(boxes, min_size, return_mask) and returns: keep, mask