class_docstr: Wrapper which converts environments from double- to single-precision.
class_docstr_tok: ["Wrapper","which","converts","environments","from","double-","to","single-precision","."]
code: def _convert_timestep(
      self, timestep: dm_env.TimeStep
  ) -> dm_env.TimeStep:
      return timestep._replace(
          reward=_convert_value(timestep.reward),
          discount=_convert_value(timestep.discount),
          observation=_convert_value(timestep.observation),
      )
  
file_path: acme/acme/wrappers/single_precision.py
imports: from acme import specs
  from acme import types
  from acme.wrappers import base
  import dm_env
  import numpy
  import tree
label_desc: Use image node_id 1 for calling the SinglePrecisionWrapper obj's underlying member method code with example usage: obj._convert_timestep(timestep) and returns: timestep