class_docstr: This class represents the time-step as mentioned above.
docstr: Exposes the underlying namedtuple replace.
docstr_tok: ["Exposes","the","underlying","namedtuple","replace","."]
code: def replace(self, **kwargs):
      """Exposes the underlying namedtuple replace."""
  
      # NOTE: This RETURNS a NEW time-step with the replacements, i.e. doesn't
      # modify self, since namedtuple is immutable.
  
      # This allows this to be called like ts.replace(action=a, raw_reward=r) etc.
  
      return self._replace(**kwargs)
  
file_path: tensor2tensor/tensor2tensor/envs/time_step.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import collections
label_desc: Use image node_id 1 for calling the TimeStep obj's underlying member method code with example usage: obj.replace() and returns: self