code: def strip(var, nenvs, nsteps, flat=False):
      vars = batch_to_seq(var, nenvs, nsteps + 1, flat)
      return seq_to_batch(vars[:-1], flat)
  
imports: import time
  import functools
  import numpy
  import tensorflow
  from baselines import logger
  from baselines.common import set_global_seeds
  from baselines.common.policies import build_policy
  from baselines.common.tf_util import get_session, save_variables, load_variables
  from baselines.common.vec_env.vec_frame_stack import VecFrameStack
  from baselines.a2c.utils import batch_to_seq, seq_to_batch
  from baselines.a2c.utils import cat_entropy_softmax
  from baselines.a2c.utils import Scheduler, find_trainable_variables
  from baselines.a2c.utils import EpisodeStats
  from baselines.a2c.utils import get_by_index, check_shape, avg_norm, gradient_add, q_explained_variance
  from baselines.acer.buffer import Buffer
  from baselines.acer.runner import Runner
label_desc: Use image node_id 1 for calling a global function with example usage: strip(var, nenvs, nsteps, flat) and returns: seq_to_batch