code: def test_is_inside(self):
      th_boxes = torch.Tensor(
          [[10, 10, 20, 20], [-5, -5, 15, 15], [45, 45, 55, 55]]
      ).reshape(1, 3, 4)
      img_shape = [30, 30]
      boxes = HorizontalBoxes(th_boxes)
  
      index = boxes.is_inside(img_shape)
      index_th = torch.BoolTensor([True, True, False]).reshape(1, 3)
      assert_allclose(index, index_th)
  
imports: import random
  from math import sqrt
  from unittest import TestCase
  import cv2
  import numpy
  import torch
  from mmengine.testing import assert_allclose
  from mmdet.structures.bbox import HorizontalBoxes
  from mmdet.structures.mask import BitmapMasks, PolygonMasks
label_desc: Use image node_id 11 for calling the TestHorizontalBoxes obj's underlying member method code with example usage: obj.test_is_inside() without return types