code: def __init__(
      self,
      mode,
      dataset_root,
      transforms,
      file_list,
      json_path,
      label_divisor=1000,
      thing_ids=None,
      num_classes=None,
      ignore_index=255,
      separator=" ",
      no_collation_keys=None,
  ):
      self.json_path = json_path
      super().__init__(
          mode=mode,
          dataset_root=dataset_root,
          transforms=transforms,
          file_list=file_list,
          label_divisor=label_divisor,
          thing_ids=thing_ids,
          num_classes=num_classes,
          ignore_index=ignore_index,
          separator=separator,
          no_collation_keys=no_collation_keys,
      )
      if self.num_classes is None:
          self.num_classes = self._get_num_classes()
      if self.thing_ids is None:
          self.thing_ids = self._get_thing_ids()
  
imports: import json
  import copy
  import os
  import numpy
  import paddle
  from paddleseg.transforms import Compose
  from paddlepanseg.cvlibs import build_info_dict
label_desc: Use image node_id 1 to create a new COCOStylePanopticDataset object from inherited base classes: PanopticDataset with example: obj = COCOStylePanopticDataset(mode, dataset_root, transforms, file_list, json_path, label_divisor, thing_ids, num_classes, ignore_index, separator, no_collation_keys)