code: def _get_gt_instances():
      bboxes = np.array([[912, 484, 1009, 593], [1338, 418, 1505, 797]])
      masks = np.zeros((2, 1080, 1920), dtype=np.bool_)
      for i, bbox in enumerate(bboxes):
          masks[i, bbox[1] : bbox[3], bbox[0] : bbox[2]] = True
      instances_data = dict(
          bboxes=torch.tensor(bboxes),
          masks=masks,
          instances_id=torch.tensor([1, 2]),
          labels=torch.tensor([0, 1]),
      )
      instances = InstanceData(**instances_data)
      return instances
  
imports: import os
  from unittest import TestCase
  import cv2
  import numpy
  import torch
  from mmengine.structures import InstanceData, PixelData
  from mmdet.evaluation import INSTANCE_OFFSET
  from mmdet.structures import DetDataSample
  from mmdet.visualization import DetLocalVisualizer, TrackLocalVisualizer
label_desc: Use image node_id 1 for calling the TestTrackLocalVisualizer obj's underlying member method code with example usage: obj._get_gt_instances() and returns: instances