code: def get_data_info(self, idx):
      return dict(width=self.shapes[idx][0], height=self.shapes[idx][1])
  
file_path: mmdetection/tests/test_datasets/test_samplers/test_batch_sampler.py
imports: from unittest import TestCase
  from unittest.mock import patch
  import numpy
  from mmengine.dataset import DefaultSampler
  from torch.utils.data import Dataset
  from mmdet.datasets.samplers import AspectRatioBatchSampler
label_desc: Use image node_id 4 for calling the DummyDataset obj's underlying member method code with example usage: obj.get_data_info(idx) and returns: dict