code: def get_complex_n_step_backup_at_all_times(
      rewards, pcontinues, state_values, lambda_
  ):
      """Evaluates complex n-step backups at all time-points.
  
      Args:
        rewards: a list containing rewards.
        pcontinues: a list containing discounts.
        state_values: a list containing bootstrapped state values.
        lambda_: mixing parameter lambda.
  
      Returns:
        A list containing complex backups at all times.
      """
      res = []
      length = len(rewards)
      for i in xrange(0, length):
          res.append(
              get_complex_n_step_backup(
                  rewards,
                  pcontinues,
                  state_values,
                  i,
                  length - i,
                  lambda_,
              )
          )
      return res
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import numpy
  from six.moves import xrange
  import tensorflow.compat.v1
  from trfl import sequence_ops
label_desc: Use image node_id 3 for calling a global function with example usage: get_complex_n_step_backup_at_all_times(rewards, pcontinues, state_values, lambda_) and returns: res