code: 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)
      ]
  
imports: import numpy
  import tensorflow.compat.v1
label_desc: Use image node_id 1 for calling a global function with example usage: unbatch(batched_states, batch_size) and returns: unknown