To access the dimensions, you must access the first one with observation_space[0].n to access the first Disceret and observation_space[1].n to access the second Disceret
observation_space[0].n
Disceret
observation_space[1].n