code: def test_inconsistent_env_infos():
      env = GymEnv("MountainCar-v0")
      env.reset()
      env._env_info = {"k1": "v1", "k2": "v2"}
      with pytest.raises(
          RuntimeError,
          match="GymEnv outputs inconsistent env_info keys.",
      ):
          env.step(env.action_space.sample())
      # check that order of keys don't matter for equality
      assert env._env_info.keys() == {"k2": "v2", "k1": "v1"}.keys()
  
imports: import math
  import pickle
  import gym
  import pytest
  from garage import EnvSpec
  from garage.envs import GymEnv
  from garage.envs.bullet import BulletEnv
  from garage.envs.wrappers.clip_reward import ClipReward
  from garage.envs.wrappers.episodic_life import EpisodicLife
  from garage.envs.wrappers.grayscale import Grayscale
  from garage.envs.wrappers.max_and_skip import MaxAndSkip
  from garage.envs.wrappers.noop import Noop
  from garage.envs.wrappers.resize import Resize
  from garage.envs.wrappers.stack_frames import StackFrames
label_desc: Use image node_id 13 for calling a global function with example usage: test_inconsistent_env_infos() without return types