code: def test_env_version_suggestions(
      register_testing_envs,
      env_id_input,
      suggested_versions,
      default_version,
  ):
      if default_version:
          with pytest.raises(
              gym.error.DeprecatedEnv,
              match="It provides the default version",  # env name,
          ):
              gym.make(env_id_input, disable_env_checker=True)
      else:
          with pytest.raises(
              gym.error.UnregisteredEnv,
              match=f"It provides versioned environments: \\[ {suggested_versions} \\]",
          ):
              gym.make(env_id_input, disable_env_checker=True)
  
file_path: gym/tests/envs/test_register.py
imports: import re
  from typing import Optional
  import pytest
  import gym
label_desc: Use image node_id 5 for calling a global function with example usage: test_env_version_suggestions(register_testing_envs, env_id_input, suggested_versions, default_version) without return types