code: def __init__(self, keys):
      super().__init__()
      self.keys = keys
  
imports: from collections import Counter
  import numpy
  import paddleseg
  import paddlepanseg.transforms.functional
  from paddlepanseg.cvlibs import manager
  from paddlepanseg.cvlibs.info_dicts import InfoDict
  from paddlepanseg.utils import encode_pan_id
  from .test_transforms import trim_for_test
label_desc: Use image node_id 1 to create a new Collect object from inherited base classes: object with example: obj = Collect(keys)