code: def test_lvis1_dataset(self):
      dataset = LVISV1Dataset(
          ann_file=self.json_name,
          data_prefix=dict(img="imgs"),
          metainfo=self.metainfo,
          filter_cfg=dict(filter_empty_gt=True, min_size=32),
          pipeline=[],
      )
      self.assertEqual(
          dataset.metainfo["classes"], self.metainfo["classes"]
      )
      dataset.full_init()
      # filter images of small size and images
      # with all illegal annotations
      self.assertEqual(len(dataset), 2)
      self.assertEqual(len(dataset.load_data_list()), 4)
  
      dataset = LVISV1Dataset(
          ann_file=self.json_name,
          data_prefix=dict(img="imgs"),
          metainfo=self.metainfo,
          test_mode=True,
          filter_cfg=dict(filter_empty_gt=True, min_size=32),
          pipeline=[],
      )
      dataset.full_init()
      # filter images of small size and images
      # with all illegal annotations
      self.assertEqual(len(dataset), 4)
      self.assertEqual(len(dataset.load_data_list()), 4)
  
file_path: mmdetection/tests/test_datasets/test_lvis.py
imports: import os
  import unittest
  from mmengine.fileio import dump
  from mmdet.datasets import LVISV1Dataset, LVISV05Dataset
label_desc: Use image node_id 4 for calling the TestLVISDataset obj's underlying member method code with example usage: obj.test_lvis1_dataset() without return types