code: def setUp(self) -> None:
      TrackLocalVisualizer.get_instance("visualizer")
      # pseudo data_batch
      self.data_batch = dict(data_samples=None, inputs=None)
  
      pred_instances_data = dict(
          bboxes=torch.tensor(
              [[100, 100, 200, 200], [150, 150, 400, 200]]
          ),
          instances_id=torch.tensor([1, 2]),
          labels=torch.tensor([0, 1]),
          scores=torch.tensor([0.955, 0.876]),
      )
      pred_instances = InstanceData(**pred_instances_data)
      img_data_sample = DetDataSample()
      img_data_sample.pred_track_instances = pred_instances
      img_data_sample.gt_instances = pred_instances
      img_data_sample.set_metainfo(
          dict(
              img_path=osp.join(
                  osp.dirname(__file__), "../../data/color.jpg"
              ),
              scale_factor=(1.0, 1.0),
          )
      )
      track_data_sample = TrackDataSample()
      track_data_sample.video_data_samples = [img_data_sample]
      track_data_sample.set_metainfo(dict(ori_length=1))
      self.outputs = [track_data_sample]
  
imports: import os.path
  import shutil
  import time
  from unittest import TestCase
  from unittest.mock import Mock
  import torch
  from mmengine.structures import InstanceData
  from mmdet.engine.hooks import DetVisualizationHook, TrackVisualizationHook
  from mmdet.structures import DetDataSample, TrackDataSample
  from mmdet.visualization import DetLocalVisualizer, TrackLocalVisualizer
label_desc: Use image node_id 1 for calling the TestTrackVisualizationHook obj's underlying member method code with example usage: obj.setUp() without return types