code: def test_make_deprecated():
      with warnings.catch_warnings(record=True):
          with pytest.raises(
              gym.error.Error,
              match=re.escape(
                  "Environment version v0 for `Humanoid` is deprecated. Please use `Humanoid-v4` instead."
              ),
          ):
              gym.make("Humanoid-v0", disable_env_checker=True)
  
imports: import re
  import warnings
  from copy import deepcopy
  import numpy
  import pytest
  import gym
  from gym.envs.classic_control import cartpole
  from gym.wrappers import AutoResetWrapper, HumanRendering, OrderEnforcing, TimeLimit
  from gym.wrappers.env_checker import PassiveEnvChecker
  from tests.envs.test_envs import PASSIVE_CHECK_IGNORE_WARNING
  from tests.envs.utils import all_testing_env_specs
  from tests.envs.utils_envs import ArgumentEnv, RegisterDuringMakeEnv
  from tests.testing_env import GenericTestEnv, old_step_fn
  from tests.wrappers.utils import has_wrapper
label_desc: Use image node_id 2 for calling a global function with example usage: test_make_deprecated() without return types