class_docstr: The collector is used to collect the resource for evaluator.
  As the evaluation metrics are various, the needed resource not only contain the recommended result
  but also other resource from data and model. They all can be collected by the collector during the training
  and evaluation process.
  
  This class is only used in Trainer.
docstr: Get all the evaluation resource that been collected.
  And reset some of outdated resource.
docstr_tok: ["Get","all","the","evaluation","resource","that","been","collected",".","And","reset","some","of","outdated","resource","."]
code: def get_data_struct(self):
      """Get all the evaluation resource that been collected.
      And reset some of outdated resource.
      """
      returned_struct = copy.deepcopy(self.data_struct)
      for key in [
          "rec.topk",
          "rec.meanrank",
          "rec.score",
          "rec.items",
          "data.label",
      ]:
          if key in self.data_struct:
              del self.data_struct[key]
      return returned_struct
  
imports: from recbole.evaluator.register import Register
  import torch
  import copy
label_desc: Use image node_id 7 for calling the Collector obj's underlying member method code with example usage: obj.get_data_struct() and returns: returned_struct