class_docstr: Basically a list of TimeSteps with convenience methods.
class_docstr_tok: ["Basically","a","list","of","TimeSteps","with","convenience","methods","."]
docstr: Returns a tuple of sum of raw and processed rewards.
code: def reward(self):
      """Returns a tuple of sum of raw and processed rewards."""
      raw_rewards, processed_rewards = 0, 0
      for ts in self.time_steps:
          # NOTE: raw_reward and processed_reward are None for the first time-step.
          if ts.raw_reward is not None:
              raw_rewards += ts.raw_reward
          if ts.processed_reward is not None:
              processed_rewards += ts.processed_reward
      return raw_rewards, processed_rewards
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import os
  import pickle
  import re
  import sys
  import time
  from absl import logging
  import cloudpickle
  import numpy
  from tensor2tensor.envs import time_step
  import tensorflow.compat.v1
label_desc: Use image node_id 11 for calling the Trajectory obj's underlying member method code with example usage: obj.reward() and returns: raw_rewards,  processed_rewards