code: def _add_advantage_and_value_target_to_episodes(
      episodes, gamma, lambd
  ):
      """Add advantage and value target values to a list of episodes."""
      for episode in episodes:
          _add_advantage_and_value_target_to_episode(
              episode, gamma=gamma, lambd=lambd
          )
  
imports: import collections
  import itertools
  import random
  import chainer
  from chainer import cuda
  import chainer.functions
  import numpy
  from chainerrl import agent
  from chainerrl.misc.batch_states import batch_states
label_desc: Use image node_id 4 for calling a global function with example usage: _add_advantage_and_value_target_to_episodes(episodes, gamma, lambd) without return types