code: def test_resize_observation(env_id, shape):
      env = gym.make(env_id, disable_env_checker=True)
      env = ResizeObservation(env, shape)
  
      assert isinstance(env.observation_space, spaces.Box)
      assert env.observation_space.shape[-1] == 3
      obs, _ = env.reset()
      if isinstance(shape, int):
          assert env.observation_space.shape[:2] == (shape, shape)
          assert obs.shape == (shape, shape, 3)
      else:
          assert env.observation_space.shape[:2] == tuple(shape)
          assert obs.shape == tuple(shape) + (3,)
  
imports: import pytest
  import gym
  from gym import spaces
  from gym.wrappers import ResizeObservation
label_desc: Use image node_id 1 for calling a global function with example usage: test_resize_observation(env_id, shape) without return types