Bugfix: spaces.MultiDiscrete.contains() can handle different shapes (#1740)
Bugfix: spaces.MultiDiscrete.contains() can handle different shapes (#1740)

See also space.Box.contains(), it already has this change

Reproduce Error with following lines:

from gym import spaces
import numpy as np
space_Multidiscrete = spaces.MultiDiscrete(np.ones((10,3)))
sample_test = np.ones((9,3))
space_Multidiscrete.contains(sample_test) #errors: ValueError: operands could not be broadcast together with shapes (9,3) (10,3)
Farama-Foundation/Gymnasium,Farama-Foundation/Gymnasium