code: def reset(self):
      self.offset = 0
      self.swap_tensors = {}
      self.compute_tensors = {}
      self.swap_paths = {}
      self.num_elem = 0
  
imports: import torch
  from deepspeed.utils.logging import logger
  from deepspeed import comm
label_desc: Use image node_id 2 for calling the SwapBuffer obj's underlying member method code with example usage: obj.reset() without return types