class_docstr: DummyAgent operates in an offline mode.
  Waits until all source is read to run inference.
class_docstr_tok: ["DummyAgent","operates","in","an","offline","mode",".","Waits","until","all","source","is","read","to","run","inference","."]
code: def clean(self):
      self.processed_index = -1
      self.maxlen = 0
      self.prev_prediction = ""
      self.n_chunks = 0
  
file_path: espnet/egs2/hkust/asr1/pyscripts/utils/simuleval_agent.py
imports: import logging
  import random
  from typing import Any, List, Optional, Sequence, Tuple, Union
  import torch
  from mosestokenizer import MosesDetokenizer
  from simuleval.agents import SpeechToTextAgent
  from simuleval.agents.actions import ReadAction, WriteAction
  from simuleval.utils import entrypoint
  from espnet2.bin.st_inference import Speech2Text
  from espnet2.bin.st_inference_streaming import Speech2TextStreaming
  from espnet2.torch_utils.set_all_random_seed import set_all_random_seed
  from espnet2.utils.types import str2bool, str2triple_str, str_or_none
label_desc: Use image node_id 3 for calling the DummyAgent obj's underlying member method code with example usage: obj.clean() without return types