code: def test_spec_missing_lookup():
      gym.register(id="Test1-v0", entry_point="no-entry-point")
      gym.register(id="Test1-v15", entry_point="no-entry-point")
      gym.register(id="Test1-v9", entry_point="no-entry-point")
      gym.register(id="Other1-v100", entry_point="no-entry-point")
  
      with pytest.raises(
          gym.error.DeprecatedEnv,
          match=re.escape(
              "Environment version v1 for `Test1` is deprecated. Please use `Test1-v15` instead."
          ),
      ):
          gym.spec("Test1-v1")
  
      with pytest.raises(
          gym.error.UnregisteredEnv,
          match=re.escape(
              "Environment version `v1000` for environment `Test1` doesn't exist. It provides versioned environments: [ `v0`, `v9`, `v15` ]."
          ),
      ):
          gym.spec("Test1-v1000")
  
      with pytest.raises(
          gym.error.UnregisteredEnv,
          match=re.escape("Environment Unknown1 doesn't exist. "),
      ):
          gym.spec("Unknown1-v1")
  
file_path: gym/tests/envs/test_spec.py
imports: import re
  import pytest
  import gym
label_desc: Use image node_id 3 for calling a global function with example usage: test_spec_missing_lookup() without return types