class_docstr: Environment wrapper for OpenAI Gym environments.
class_docstr_tok: ["Environment","wrapper","for","OpenAI","Gym","environments","."]
code: def action_spec(self) -> types.NestedSpec:
      return self._action_spec
  
imports: from typing import Any, Dict, List, Optional
  from acme import specs
  from acme import types
  import dm_env
  import gym
  from gym import spaces
  import numpy
  import tree
label_desc: Use image node_id 5 for calling the GymWrapper obj's underlying member method code with example usage: obj.action_spec() and returns: self