class_docstr: :class:`~EnvUpdate` that calls set_task with the provided task.
  
  Args:
      env_type (type): Type of environment.
      task (object): Opaque task type.
      wrapper_constructor (Callable[garage.Env, garage.Env] or None):
          Callable that wraps constructed environments.
class_docstr_tok: [":","class",":","`","~EnvUpdate","`","that","calls","set_task","with","the","provided","task",".","Args",":","env_type","(","type",")",":","Type","of","environment",".","task","(","object",")",":","Opaque","task","type",".","wrapper_constructor","(","Callable","[","garage.Env",",","garage.Env","]","or","None",")",":","Callable","that","wraps","constructed","environments","."]
docstr: Construct the environment, wrapping if necessary.
  
  Returns:
      garage.Env: The (possibly wrapped) environment.
docstr_tok: ["Construct","the","environment",",","wrapping","if","necessary",".","Returns",":","garage.Env",":","The","(","possibly","wrapped",")","environment","."]
code: def _make_env(self):
      """Construct the environment, wrapping if necessary.
  
      Returns:
          garage.Env: The (possibly wrapped) environment.
  
      """
      env = self._env_type()
      env.set_task(self._task)
      if self._wrapper_cons is not None:
          env = self._wrapper_cons(env, self._task)
      return env
  
file_path: garage/src/garage/sampler/env_update.py
imports: import warnings
label_desc: Use image node_id 2 for calling the SetTaskUpdate obj's underlying member method code with example usage: obj._make_env() and returns: env