code: def export_nonmaxsuppression_two_batches() -> None:
      node = onnx.helper.make_node(
          "NonMaxSuppression",
          inputs=[
              "boxes",
              "scores",
              "max_output_boxes_per_class",
              "iou_threshold",
              "score_threshold",
          ],
          outputs=["selected_indices"],
      )
      boxes = np.array(
          [
              [
                  [0.0, 0.0, 1.0, 1.0],
                  [0.0, 0.1, 1.0, 1.1],
                  [0.0, -0.1, 1.0, 0.9],
                  [0.0, 10.0, 1.0, 11.0],
                  [0.0, 10.1, 1.0, 11.1],
                  [0.0, 100.0, 1.0, 101.0],
              ],
              [
                  [0.0, 0.0, 1.0, 1.0],
                  [0.0, 0.1, 1.0, 1.1],
                  [0.0, -0.1, 1.0, 0.9],
                  [0.0, 10.0, 1.0, 11.0],
                  [0.0, 10.1, 1.0, 11.1],
                  [0.0, 100.0, 1.0, 101.0],
              ],
          ]
      ).astype(np.float32)
      scores = np.array(
          [
              [[0.9, 0.75, 0.6, 0.95, 0.5, 0.3]],
              [[0.9, 0.75, 0.6, 0.95, 0.5, 0.3]],
          ]
      ).astype(np.float32)
      max_output_boxes_per_class = np.array([2]).astype(np.int64)
      iou_threshold = np.array([0.5]).astype(np.float32)
      score_threshold = np.array([0.0]).astype(np.float32)
      selected_indices = np.array(
          [[0, 0, 3], [0, 0, 0], [1, 0, 3], [1, 0, 0]]
      ).astype(np.int64)
  
      expect(
          node,
          inputs=[
              boxes,
              scores,
              max_output_boxes_per_class,
              iou_threshold,
              score_threshold,
          ],
          outputs=[selected_indices],
          name="test_nonmaxsuppression_two_batches",
      )
  
file_path: onnx/onnx/backend/test/case/node/nonmaxsuppression.py
imports: import numpy
  import onnx
  from onnx.backend.test.case.base import Base
  from onnx.backend.test.case.node import expect
label_desc: Use image node_id 9 for calling the NonMaxSuppression obj's underlying member method code with example usage: obj.export_nonmaxsuppression_two_batches() without return types