(stage_cfgs)
return ret
For a list of stages
For a list of stages
For a list of stages
def expand_stages_cfg(stage_cfgs):
    """ For a list of stages """
    assert isinstance(stage_cfgs, list)
    ret = []
    for x in stage_cfgs:
        ret.append(expand_stage_cfg(x))
    return ret
def expand_stages_cfg ( stage_cfgs ) : assert isinstance ( stage_cfgs , list ) ret = [ ] for x in stage_cfgs : ret . append ( expand_stage_cfg ( x ) ) return ret