def get_shuffle_together(config):
    """Get which parameters need to be shuffled together, including multi-step values."""
    shuffle_together = config.get('shuffle_together', [])
    data_multistep = config.get('rl_multistep', [])
    for steps in data_multistep:
        group = []
        for s in range(1, steps + 1):
            group.append(f'multistep_{steps}_obs_{s}')
        for s in range(1, steps):
            group.append(f'multistep_{steps}_act_{s}')
            group.append(f'multistep_{steps}_rew_{s}')
            group.append(f'multistep_{steps}_done_{s}')
        shuffle_together.append(group)

    return shuffle_together