class_docstr: A regular replay buffer which stores transition without any additional structure
docstr: Remove the transition in the given index.
  
  This does not remove the transition from the segment trees! it is just used to remove the transition
  from the transitions list
  :param transition_index: the index of the transition to remove
  :return: None
docstr_tok: ["Remove","the","transition","in","the","given","index",".","This","does","not","remove","the","transition","from","the","segment","trees","!","it","is","just","used","to","remove","the","transition","from","the","transitions","list",":","param","transition_index",":","the","index","of","the","transition","to","remove",":","return",":","None"]
code: def remove_transition(
      self, transition_index: int, lock: bool = True
  ) -> None:
      """
      Remove the transition in the given index.
  
      This does not remove the transition from the segment trees! it is just used to remove the transition
      from the transitions list
      :param transition_index: the index of the transition to remove
      :return: None
      """
      self.assert_not_frozen()
  
      if lock:
          self.reader_writer_lock.lock_writing_and_reading()
  
      if self.num_transitions() > transition_index:
          del self.transitions[transition_index]
  
      if lock:
          self.reader_writer_lock.release_writing_and_reading()
  
imports: from typing import List, Tuple, Union
  import pickle
  import random
  import math
  import numpy
  from rl_coach.core_types import Transition
  from rl_coach.logger import screen
  from rl_coach.memories.memory import Memory, MemoryGranularity, MemoryParameters
  from rl_coach.utils import ReaderWriterLock, ProgressBar
label_desc: Use image node_id 9 for calling the ExperienceReplay obj's underlying member method code with example usage: obj.remove_transition(transition_index, lock) without return types