(batched_states, batch_size=1)
return [extract_state(batched_states, i) for i in range(batch_size)]
Splits a state structure into a list of individual states.

  Args:
    batched_states: A nested structure with entries whose first dimensions all
      equal `batch_size`.
    batch_size: The number of states in the batch.

  Returns:
    A list of `batch_size` state structures, each representing a single state.
Splits a state structure into a list of individual states.
Splits a state structure into a list of individual states .
def unbatch(batched_states, batch_size=1):
  """Splits a state structure into a list of individual states.

  Args:
    batched_states: A nested structure with entries whose first dimensions all
      equal `batch_size`.
    batch_size: The number of states in the batch.

  Returns:
    A list of `batch_size` state structures, each representing a single state.
  """
  return [extract_state(batched_states, i) for i in range(batch_size)]
def unbatch ( batched_states , batch_size = 1 ) : return [ extract_state ( batched_states , i ) for i in range ( batch_size ) ]