code: def test_coco_panoptic_dataset_without_filter_cfg(self):
      dataset = CocoPanopticDataset(
          data_root="./",
          ann_file=self.json_name,
          data_prefix=dict(img="imgs", seg="seg"),
          metainfo=self.metainfo,
          filter_cfg=None,
          pipeline=[],
      )
      self.assertEqual(
          dataset.metainfo["classes"], self.metainfo["classes"]
      )
      self.assertEqual(
          dataset.metainfo["thing_classes"],
          self.metainfo["thing_classes"],
      )
      self.assertEqual(
          dataset.metainfo["stuff_classes"],
          self.metainfo["stuff_classes"],
      )
      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)
  
      # test mode
      dataset = CocoPanopticDataset(
          data_root="./",
          ann_file=self.json_name,
          data_prefix=dict(img="imgs", seg="seg"),
          metainfo=self.metainfo,
          filter_cfg=None,
          test_mode=True,
          pipeline=[],
      )
      self.assertEqual(
          dataset.metainfo["classes"], self.metainfo["classes"]
      )
      self.assertEqual(
          dataset.metainfo["thing_classes"],
          self.metainfo["thing_classes"],
      )
      self.assertEqual(
          dataset.metainfo["stuff_classes"],
          self.metainfo["stuff_classes"],
      )
      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_coco_panoptic.py
imports: import os
  import unittest
  from mmengine.fileio import dump
  from mmdet.datasets import CocoPanopticDataset
label_desc: Use image node_id 4 for calling the TestCocoPanopticDataset obj's underlying member method code with example usage: obj.test_coco_panoptic_dataset_without_filter_cfg() without return types