code: def get_places(self):
      places = [paddle.CPUPlace()]
      if paddle.device.is_compiled_with_cuda():
          places.append(paddle.CUDAPlace(0))
  
      return places
  
file_path: PaddleDetection/ppdet/ext_op/unittest/test_matched_rbox_iou.py
imports: import numpy
  import sys
  import time
  from shapely.geometry import Polygon
  import paddle
  import unittest
  from ext_op import matched_rbox_iou
label_desc: Use image node_id 4 for calling the MatchedRBoxIoUTest obj's underlying member method code with example usage: obj.get_places() and returns: places