code: def test_env(env_id):
      """
      Check that environmnent integrated in Gym pass the test.
  
      :param env_id: (str)
      """
      env = gym.make(env_id)
      with pytest.warns(None) as record:
          check_env(env)
  
      # Pendulum-v0 will produce a warning because the action space is
      # in [-2, 2] and not [-1, 1]
      if env_id == "Pendulum-v0":
          assert len(record) == 1
      else:
          # The other environments must pass without warning
          assert len(record) == 0
  
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 1 for calling a global function with example usage: test_env(env_id) without return types