class_docstr: Converts discrete action to one_hot format.
code: def action_spec(self):
      def convert_to_one_hot(action_spec):
          """Convert action_spec to one_hot format."""
          if action_spec.dtype.is_integer:
              num_actions = (
                  action_spec.maximum - action_spec.minimum + 1
              )
              output_shape = action_spec.shape + (num_actions,)
  
              return tensor_spec.BoundedTensorSpec(
                  shape=output_shape,
                  dtype=action_spec.dtype,
                  minimum=0,
                  maximum=1,
                  name="one_hot_action_spec",
              )
          else:
              return action_spec
  
      return tf.nest.map_structure(
          convert_to_one_hot, self._env.action_spec()
      )
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import tensorflow
  from tf_agents.environments import tf_environment
  from tf_agents.specs import tensor_spec
label_desc: Use image node_id 3 for calling the OneHotActionWrapper obj's underlying member method code with example usage: obj.action_spec() and returns: tf, tensor_spec, action_spec