class_docstr: A schedule which consists of multiple sub-schedules, where each one is used for a defined number of steps
docstr: :param schedules: a list of schedules to apply serially. Each element of the list should be a tuple of
                    2 elements - a schedule and the number of steps to run it in terms of EnvironmentSteps
docstr_tok: [":","param","schedules",":","a","list","of","schedules","to","apply","serially",".","Each","element","of","the","list","should","be","a","tuple","of","2","elements","-","a","schedule","and","the","number","of","steps","to","run","it","in","terms","of","EnvironmentSteps"]
code: def __init__(
      self, schedules: List[Tuple[Schedule, EnvironmentSteps]]
  ):
      """
      :param schedules: a list of schedules to apply serially. Each element of the list should be a tuple of
                        2 elements - a schedule and the number of steps to run it in terms of EnvironmentSteps
      """
      super().__init__(schedules[0][0].initial_value)
      self.schedules = schedules
      self.current_schedule = schedules[0]
      self.current_schedule_idx = 0
      self.current_schedule_step_count = 0
  
imports: from typing import List, Tuple
  import numpy
  from rl_coach.core_types import EnvironmentSteps
label_desc: Use image node_id 1 to create a new PieceWiseSchedule object from inherited base classes: Schedule with example: obj = PieceWiseSchedule(schedules)