class_docstr: Tests the Space class.
      
docstr: Tests descrete space.
          
docstr_tok: ["Tests","descrete","space","."]
code: def test_space(self):
      """Tests descrete space."""
      s = Space(shape=(), low=0, high=10, dtype=np.int32)
      self._test_space(s, (), 0, 10, np.dtype(np.int32))
      self.assertTrue(s.contains(5))
      self.assertFalse(s.contains(5.0))
      self.assertFalse(s.contains(15))
  
      s = Space(low=0, high=10, dtype=np.int32)
      self._test_space(s, (), 0, 10, np.dtype(np.int32))
  
imports: import numpy
  import tensorflow
  from texar.tf.agents.agent_utils import Space
label_desc: Use image node_id 2 for calling the SpaceTest obj's underlying member method code with example usage: obj.test_space() without return types