class_docstr: This is the proportional sampling variant of the prioritized experience replay as described
  in https://arxiv.org/pdf/1511.05952.pdf.
docstr: Update the priorities of a batch of transitions using their indices and their new TD error terms
  :param indices: the indices of the transitions to update
  :param error_values: the new error values
  :return: None
docstr_tok: ["Update","the","priorities","of","a","batch","of","transitions","using","their","indices","and","their","new","TD","error","terms",":","param","indices",":","the","indices","of","the","transitions","to","update",":","param","error_values",":","the","new","error","values",":","return",":","None"]
code: def update_priorities(
      self, indices: List[int], error_values: List[float]
  ) -> None:
      """
      Update the priorities of a batch of transitions using their indices and their new TD error terms
      :param indices: the indices of the transitions to update
      :param error_values: the new error values
      :return: None
      """
      self.reader_writer_lock.lock_writing_and_reading()
  
      if len(indices) != len(error_values):
          raise ValueError(
              "The number of indexes requested for update don't match the number of error values given"
          )
      for transition_idx, error in zip(indices, error_values):
          self._update_priority(transition_idx, error)
  
      self.reader_writer_lock.release_writing_and_reading()
  
imports: import operator
  import random
  from enum import Enum
  from typing import List, Tuple, Any
  import numpy
  from rl_coach.core_types import Transition
  from rl_coach.memories.memory import MemoryGranularity
  from rl_coach.memories.non_episodic.experience_replay import ExperienceReplayParameters, ExperienceReplay
  from rl_coach.schedules import Schedule, ConstantSchedule
label_desc: Use image node_id 3 for calling the PrioritizedExperienceReplay obj's underlying member method code with example usage: obj.update_priorities(indices, error_values) without return types