class_docstr: A piecewise combination of multiple schedules.
code: def __init__(
      self,
      schedules: Iterable[Tuple[int, Union[Schedule, Iterable[Any]]]],
  ):
      self.schedules = [from_config(s) for ms, s in schedules]
      milestones = jnp.array([ms for ms, s in schedules])
      self.milestones = jnp.cumsum(milestones)[:-1]
  
imports: import abc
  import collections
  import copy
  import math
  from typing import Any, Iterable, List, Tuple, Union
  from jax import numpy
label_desc: Use image node_id 1 to create a new PiecewiseSchedule object from inherited base classes: Schedule with example: obj = PiecewiseSchedule(schedules)