code: def collect(self, keys=None, return_dict=False):
      if keys is None:
          keys = self.PRIMARY_KEYS
      vals = map(self.__getitem__, keys)
      if return_dict:
          return self._DICT_TYPE(zip(keys, vals))
      else:
          return list(vals)
  
imports: from itertools import cycle
  from collections import OrderedDict
  from collections.abc import MutableMapping
  import paddle
label_desc: Use image node_id 7 for calling the InfoDict obj's underlying member method code with example usage: obj.collect(keys, return_dict) and returns: self, list