code: def test_roi_align_error(self):
      with self.static_graph():
          inputs = paddle.static.data(
              name="inputs", shape=[2, 12, 20, 20], dtype="float32"
          )
          rois = paddle.static.data(
              name="data_error",
              shape=[10, 4],
              dtype="int32",
              lod_level=1,
          )
          self.assertRaises(
              TypeError,
              paddle.vision.ops.roi_align,
              input=inputs,
              rois=rois,
              output_size=(7, 7),
          )
  
      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 TestROIAlign obj's underlying member method code with example usage: obj.test_roi_align_error() without return types