code: def done_tokens(self, done_tokens: List[torch.Tensor]) -> None:
      assert len(done_tokens) == len(self.requests)
      for idx, r in enumerate(self.requests):
          r.is_done = done_tokens[idx]
  
imports: from dataclasses import dataclass, field, asdict
  from typing import Any, Dict, List, Iterator, Union
  from typing_extensions import Self
  import torch
  from mii.constants import GenerationFinishReason
  from mii.config import GenerateParamsConfig
label_desc: Use image node_id 17 for calling the RequestBatch obj's underlying member method code with example usage: obj.done_tokens(done_tokens) without return types