code: def setUpClass(cls):
      register_all_modules(init_default_scope=True)
      cfg = dict(
          type="OCSORTTracker",
          motion=dict(type="KalmanFilter"),
          obj_score_thr=0.3,
          init_track_thr=0.7,
          weight_iou_with_det_scores=True,
          match_iou_thr=0.3,
          num_tentatives=3,
          vel_consist_weight=0.2,
          vel_delta_t=3,
          num_frames_retain=30,
      )
      cls.tracker = MODELS.build(cfg)
      cls.tracker.kf = TASK_UTILS.build(dict(type="KalmanFilter"))
      cls.num_frames_retain = cfg["num_frames_retain"]
      cls.num_objs = 30
  
file_path: mmdetection/tests/test_models/test_trackers/test_oc_sort_tracker.py
imports: from unittest import TestCase
  import torch
  from mmdet.registry import MODELS, TASK_UTILS
  from mmdet.testing import demo_track_inputs
  from mmdet.utils import register_all_modules
label_desc: Use image node_id 1 for calling the TestByteTracker obj's underlying member method code with example usage: obj.setUpClass(cls) without return types