code: def reset_request_status(self):
      for r in self.buffer:
          if r.seq_length > 0:
              self._queue_flush_request(r.uid)
  
      new_buffer = deque()
      for r in self.buffer:
          new_req = copy.copy(r)
          new_req.prompt_tokens = new_req.input_tokens = torch.concat(
              [r.prompt_tokens]
              + [t.unsqueeze(0) for t in r.generated_tokens]
          )
          new_req.seq_length = 0
          new_req.max_new_tokens = r.max_new_tokens - len(
              r.generated_tokens
          )
          new_req.clear_generated_token()
          new_buffer.append(new_req)
  
      self.buffer = new_buffer
  
imports: import copy
  import gc
  import os
  import queue
  import random
  import threading
  import time
  from collections import deque, defaultdict
  from functools import cached_property
  from typing import Dict, Tuple, List, Any, Union, DefaultDict
  import torch
  import ujson
  import zmq
  from deepspeed.accelerator import get_accelerator
  from deepspeed.utils.timer import SynchronizedWallClockTimer
  from mii.batching.constants import TOP_K_NAME, TOP_P_NAME, TEMP_NAME, SAMPLER_NAME, STOP_NAME
  from mii.batching.data_classes import Response, Request, RequestBatch
  from mii.batching.generation.logit_processors import TopPLogitProcessor, TopKLogitProcessor, TemperatureLogitProcessor
  from mii.batching.generation.samplers import LogitsSampler, GreedySampler
  from mii.batching.generation.stop_criterion import EosGenerationStopCriterion, TokenStopCriterion
  from mii.batching.postprocess import run_batch_logit_processing, run_batch_sampler, run_batch_stop_criterion
  from mii.batching.utils import sync_debug, profiler
  from mii.config import GenerateParamsConfig
  from mii.constants import GenerationFinishReason, ZMQ_RECV_TIMEOUT
  from mii.logging import logger
label_desc: Use image node_id 13 for calling the RaggedBatchBase obj's underlying member method code with example usage: obj.reset_request_status() without return types