code: def update_tensor(self, name: str, value: torch.Tensor):
      if name not in self._data_dict:
          self._data_dict[name] = value.cpu().clone().detach()
      else:
          if not isinstance(self._data_dict[name], torch.Tensor):
              raise ValueError("{} is not a tensor.".format(name))
          self._data_dict[name] = torch.cat(
              (self._data_dict[name], value.cpu().clone().detach()),
              dim=0,
          )
  
imports: from recbole.evaluator.register import Register
  import torch
  import copy
label_desc: Use image node_id 8 for calling the DataStruct obj's underlying member method code with example usage: obj.update_tensor(name, value) without return types