code: def test_matrix_nms_error(self):
      with self.static_graph():
          bboxes = paddle.static.data(
              name="bboxes", shape=[7, 1200, 4], dtype="float32"
          )
          scores = paddle.static.data(
              name="data_error", shape=[7, 21, 1200], dtype="int32"
          )
          self.assertRaises(
              TypeError,
              ops.matrix_nms,
              bboxes=bboxes,
              scores=scores,
              score_threshold=0.01,
              post_threshold=0.0,
              nms_top_k=400,
              keep_top_k=200,
              return_index=True,
          )
  
      paddle.disable_static()
  
imports: from __future__ import print_function
  import os, sys
  import unittest
  import numpy
  import paddle
  import ppdet.modeling.ops
  from ppdet.modeling.tests.test_base import LayerTest
label_desc: Use image node_id 2 for calling the TestMatrixNMS obj's underlying member method code with example usage: obj.test_matrix_nms_error() without return types