src/seals/testing/envs.py
def _check_obs(obs: np.ndarray, obs_space: gym.Space) -> None:
    """Check obs is consistent with obs_space."""
    if obs_space.shape:
        assert obs.shape == obs_space.shape
        assert obs.dtype == obs_space.dtype
    assert obs in obs_space
Check obs is consistent with obs_space.
Check obs is consistent with obs_space.
Check obs is consistent with obs_space .
def _check_obs(obs: np.ndarray, obs_space: gym.Space) -> None:
    if obs_space.shape:
        assert obs.shape == obs_space.shape
        assert obs.dtype == obs_space.dtype
    assert obs in obs_space
def _check_obs ( obs : np . ndarray , obs_space : gym . Space ) -> None : if obs_space . shape : assert obs . shape == obs_space . shape assert obs . dtype == obs_space . dtype assert obs in obs_space
Check obs is consistent with obs_space.
Check obs is consistent with obs_space .
"""Check obs is consistent with obs_space."""
obs
np.ndarray
obs_space
gym.Space