class_docstr: Append a one-hot task representation to an environment.
  
  See TaskOnehotWrapper.wrap_env_list for the recommended way of creating
  this class.
  
  Args:
      env (Environment): The environment to wrap.
      task_index (int): The index of this task among the tasks.
      n_total_tasks (int): The number of total tasks.
class_docstr_tok: ["Append","a","one-hot","task","representation","to","an","environment",".","See","TaskOnehotWrapper.wrap_env_list","for","the","recommended","way","of","creating","this","class",".","Args",":","env","(","Environment",")",":","The","environment","to","wrap",".","task_index","(","int",")",":","The","index","of","this","task","among","the","tasks",".","n_total_tasks","(","int",")",":","The","number","of","total","tasks","."]
docstr: Return the environment specification.
  
  Returns:
      EnvSpec: The envionrment specification.
docstr_tok: ["Return","the","environment","specification",".","Returns",":","EnvSpec",":","The","envionrment","specification","."]
code: def spec(self):
      """Return the environment specification.
  
      Returns:
          EnvSpec: The envionrment specification.
  
      """
      return self._spec
  
file_path: garage/src/garage/envs/task_onehot_wrapper.py
imports: import akro
  import numpy
  from garage import EnvSpec, EnvStep, Wrapper
label_desc: Use image node_id 3 for calling the TaskOnehotWrapper obj's underlying member method code with example usage: obj.spec() and returns: self