class_docstr: Unit tests for BoxSpaceDiscretizer.
code: def test_array(self):
      s = spaces.Box(0, 1, (2, 2))
      sut = BoxSpaceDiscretizer(s, np.array([[2, 2], [2, 2]]))
  
      self.assertEqual(sut.discretize([[0, 0], [0, 0]]), 0)
      self.assertEqual(sut.discretize([[0.05, 0], [0, 0]]), 0)
      self.assertEqual(sut.discretize([[0.95, 0], [0, 0]]), 8)
      self.assertEqual(sut.discretize([[0, 0.05], [0, 0]]), 0)
      self.assertEqual(sut.discretize([[0, 0.95], [0, 0]]), 4)
      self.assertEqual(sut.discretize([[0, 0], [0.05, 0]]), 0)
      self.assertEqual(sut.discretize([[0, 0], [0.95, 0]]), 2)
      self.assertEqual(sut.discretize([[0, 0], [0, 0.05]]), 0)
      self.assertEqual(sut.discretize([[0, 0], [0, 0.95]]), 1)
      self.assertEqual(sut.discretize([[0.1, 0.6], [0.5, 0.2]]), 6)
      self.assertEqual(sut.discretize([[1, 1], [1, 1]]), 15)
  
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 3 for calling the BoxSpaceDiscretizerTest obj's underlying member method code with example usage: obj.test_array() without return types