code: def test_common_failures_reset():
      """
      Test that common failure cases of the `reset_method` are caught
      """
      env = IdentityEnvBox()
      # Return an observation that does not match the observation_space
      check_reset_assert_error(env, np.ones((3,)))
      # The observation is not a numpy array
      check_reset_assert_error(env, 1)
  
      # Return not only the observation
      check_reset_assert_error(
          env, (env.observation_space.sample(), False)
      )
  
file_path: stable-baselines/tests/test_envs.py
imports: import pytest
  import gym
  from gym import spaces
  import numpy
  from stable_baselines.common.env_checker import check_env
  from stable_baselines.common.bit_flipping_env import BitFlippingEnv
  from stable_baselines.common.identity_env import IdentityEnv, IdentityEnvBox, IdentityEnvMultiBinary, IdentityEnvMultiDiscrete
label_desc: Use image node_id 6 for calling a global function with example usage: test_common_failures_reset() without return types