code: def test_make_latest_versioned_env(register_testing_envs):
      with pytest.warns(
          UserWarning,
          match=re.escape(
              "Using the latest versioned environment `MyAwesomeNamespace/MyAwesomeVersionedEnv-v5` instead of the unversioned environment `MyAwesomeNamespace/MyAwesomeVersionedEnv`."
          ),
      ):
          env = gym.make(
              "MyAwesomeNamespace/MyAwesomeVersionedEnv",
              disable_env_checker=True,
          )
      assert (
          env.spec.id == "MyAwesomeNamespace/MyAwesomeVersionedEnv-v5"
      )
  
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 7 for calling a global function with example usage: test_make_latest_versioned_env(register_testing_envs) without return types