code: def test_spec_default_lookups():
      gym.register("test/Test3", "no-entry-point")
  
      with pytest.raises(
          gym.error.DeprecatedEnv,
          match=re.escape(
              "Environment version `v0` for environment `test/Test3` doesn't exist. It provides the default version test/Test3`."
          ),
      ):
          gym.spec("test/Test3-v0")
  
      assert gym.spec("test/Test3") is not None
  
file_path: gym/tests/envs/test_spec.py
imports: import re
  import pytest
  import gym
label_desc: Use image node_id 6 for calling a global function with example usage: test_spec_default_lookups() without return types