code: def save(self, path):
          
          path = os.path.expandvars(os.path.expanduser(path))
          with open(path, "wb") as f:
              pickle.dump(self.roots, f)
docs: Saves all tensors of the root set to a file defined by *path*.