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.
code: def __init__(self, config):
      self.config = config
      self.data_struct = DataStruct()
      self.register = Register(config)
      self.full = "full" in config["eval_args"]["mode"]
      self.topk = self.config["topk"]
      self.device = self.config["device"]
  
imports: from recbole.evaluator.register import Register
  import torch
  import copy
label_desc: Use image node_id 1 to create a new Collector object from inherited base classes: object with example: obj = Collector(config)