code: def non_max_suppression(ious, scores, threshold):
      ixs = scores.argsort()[::-1]
      pick = []
      while len(ixs) > 0:
          i = ixs[0]
          pick.append(i)
          iou = ious[i, ixs[1:]]
          remove_ixs = np.where(iou > threshold)[0] + 1
          ixs = np.delete(ixs, remove_ixs)
          ixs = np.delete(ixs, 0)
      return pick
  
file_path: torch-points3d/torch_points3d/models/panoptic/structures.py
imports: import torch
  import numpy
  from typing import NamedTuple, List
label_desc: Use image node_id 1 for calling a global function with example usage: non_max_suppression(ious, scores, threshold) and returns: pick