class_docstr: Discretize Box space.
class_docstr_tok: ["Discretize","Box","space","."]
docstr: Discretize box space observation.
docstr_tok: ["Discretize","box","space","observation","."]
code: def discretize(self, value):
      """Discretize box space observation."""
      index = 0
      for i, v in np.ndenumerate(value):
          i_idx = self._get_index(
              v,
              self._state_mins[i],
              self._state_maxs[i],
              self._state_resolutions[i],
          )
          index = index * self._state_resolutions[i] + i_idx
      return int(index)
  
imports: import numpy
label_desc: Use image node_id 2 for calling the BoxSpaceDiscretizer obj's underlying member method code with example usage: obj.discretize(value) and returns: int