class_docstr: Base class for defining an agent.
code: def _discretize_observation_space(
      self, space, discretization_resolution
  ):
      if self._classname(space) == "gym.spaces.box.Box":
          self._space_discretizer = BoxSpaceDiscretizer(
              space, discretization_resolution
          )
          self._discrete_observation_space = True
          self._num_states = self._space_discretizer.num_states
          self._shape_of_inputs = (self._num_states,)
      else:
          raise ValueError(
              "Unsupported space type for discretization: {0}".format(
                  space
              )
          )
  
imports: from abc import ABCMeta, abstractmethod
  import numpy
  from importlib import import_module
  from .shared.discretize import BoxSpaceDiscretizer
label_desc: Use image node_id 12 for calling the AgentBaseClass obj's underlying member method code with example usage: obj._discretize_observation_space(space, discretization_resolution) without return types