class_docstr: Combine different :class:`~poutyne.Phase` instances
  in an :class:`~poutyne.OptimizerPolicy` and execute the policies in a
  row.
  
  Args:
      phases (List[~poutyne.Phase]):
          A list of :class:`~poutyne.Phase` instances.
      initial_step (int): The step to start the policy in. Used for restarting.
class_docstr_tok: ["Combine","different",":","class",":","`","~poutyne.Phase","`","instances","in","an",":","class",":","`","~poutyne.OptimizerPolicy","`","and","execute","the","policies","in","a","row",".","Args",":","phases","(","List","[","~poutyne.Phase","]",")",":","A","list","of",":","class",":","`","~poutyne.Phase","`","instances",".","initial_step","(","int",")",":","The","step","to","start","the","policy","in",".","Used","for","restarting","."]
docstr: Return the list of dictionaries of configurations for all steps.
  
  This does not advance the current_step count.
  
  Returns:
      A list of dictionaries of all the parameters for each step.
docstr_tok: ["Return","the","list","of","dictionaries","of","configurations","for","all","steps",".","This","does","not","advance","the","current_step","count",".","Returns",":","A","list","of","dictionaries","of","all","the","parameters","for","each","step","."]
code: def all_steps(self) -> List[Dict]:
      """
      Return the list of dictionaries of configurations for all steps.
  
      This does not advance the current_step count.
  
      Returns:
          A list of dictionaries of all the parameters for each step.
      """
      return chain.from_iterable(self.phases)
  
imports: import contextlib
  from collections import OrderedDict
  from itertools import chain, islice
  from math import cos, pi
  from typing import Dict, List, Optional, Tuple
  from poutyne.framework.callbacks.callbacks import Callback
label_desc: Use image node_id 4 for calling the OptimizerPolicy obj's underlying member method code with example usage: obj.all_steps() and returns: chain