class_docstr: Unit tests for BoxSpaceDiscretizer.
code: def test_scalar(self):
      s = spaces.Box(0, 1, (2,))
      sut = BoxSpaceDiscretizer(s, 10)
  
      self.assertEqual(sut.discretize([0, 0]), 0)
      self.assertEqual(sut.discretize([0.05, 0]), 0)
      self.assertEqual(sut.discretize([0.95, 0]), 90)
      self.assertEqual(sut.discretize([0, 0.05]), 0)
      self.assertEqual(sut.discretize([0, 0.95]), 9)
      self.assertEqual(sut.discretize([0.1, 0.2]), 12)
      self.assertEqual(sut.discretize([1, 1]), 99)
  
file_path: CNTK/bindings/python/cntk/contrib/deeprl/tests/discretize_test.py
imports: import unittest
  import cntk.contrib.deeprl.tests.spaces
  import numpy
  from cntk.contrib.deeprl.agent.shared.discretize import BoxSpaceDiscretizer
label_desc: Use image node_id 1 for calling the BoxSpaceDiscretizerTest obj's underlying member method code with example usage: obj.test_scalar() without return types