code: def test_init(self):
      track_data_sample = TrackDataSample(
          metainfo=dict(key_frames_inds=[0], ref_frames_inds=[1])
      )
  
      assert (
          "key_frames_inds" in track_data_sample.metainfo
          and "ref_frames_inds" in track_data_sample.metainfo
      )
      assert track_data_sample.key_frames_inds == [0]
      assert track_data_sample.ref_frames_inds == [1]
      with pytest.raises(AssertionError):
          track_data_sample.get_key_frames()
      with pytest.raises(AssertionError):
          track_data_sample.get_ref_frames()
  
imports: from unittest import TestCase
  import pytest
  from mmdet.structures import DetDataSample, TrackDataSample
label_desc: Use image node_id 1 for calling the TestDetDataSample obj's underlying member method code with example usage: obj.test_init() without return types