code: def test_spec():
      spec = gym.spec("CartPole-v1")
      assert spec.id == "CartPole-v1"
      assert spec is gym.envs.registry["CartPole-v1"]
  
file_path: gym/tests/envs/test_spec.py
imports: import re
  import pytest
  import gym
label_desc: Use image node_id 1 for calling a global function with example usage: test_spec() without return types