class_docstr: A RL task: environment and a collection of trajectories.
class_docstr_tok: ["A","RL","task",":","environment","and","a","collection","of","trajectories","."]
code: def action_space(self):
      if self._dm_suite:
          return gym.spaces.Discrete(self._env.action_spec().num_values)
      else:
          return self._env.action_space
  
imports: import collections
  import os
  import gin
  import gym
  import numpy
  from trax import fastmath
  from trax.rl import advantages
  from trax.supervised import training
label_desc: Use image node_id 6 for calling the RLTask obj's underlying member method code with example usage: obj.action_space() and returns: gym, self