code: def _remove_upto(self, event: bindings.v1SearcherEvent) -> None:
      for i, e in enumerate(self.events_queue):
          if e.id == event.id:
              self.events_queue = self.events_queue[i + 1 :]
              return
  
      raise RuntimeError(f"event not found in events queue: {event}")
  
imports: import abc
  import logging
  from pathlib import Path
  from typing import Any, Dict, Iterable, List, Optional, Sequence, Union
  from unittest.mock import Mock
  from determined import searcher
  from determined.common.api import bindings
  from determined.experimental import client
label_desc: Use image node_id 3 for calling the SimulateMaster obj's underlying member method code with example usage: obj._remove_upto(event) without return types