code: def test_make_order_enforcing():
      """Checks that gym.make wrappers the environment with the OrderEnforcing wrapper."""
      assert all(
          spec.order_enforce is True for spec in all_testing_env_specs
      )
  
      env = gym.make("CartPole-v1", disable_env_checker=True)
      assert has_wrapper(env, OrderEnforcing)
      # We can assume that there all other specs will also have the order enforcing
      env.close()
  
      gym.register(
          id="test.OrderlessArgumentEnv-v0",
          entry_point="tests.envs.utils_envs:ArgumentEnv",
          order_enforce=False,
          kwargs={"arg1": None, "arg2": None, "arg3": None},
      )
  
      env = gym.make(
          "test.OrderlessArgumentEnv-v0", disable_env_checker=True
      )
      assert has_wrapper(env, OrderEnforcing) is False
      env.close()
  
imports: import re
  import warnings
  from copy import deepcopy
  import numpy
  import pytest
  import gym
  from gym.envs.classic_control import cartpole
  from gym.wrappers import AutoResetWrapper, HumanRendering, OrderEnforcing, TimeLimit
  from gym.wrappers.env_checker import PassiveEnvChecker
  from tests.envs.test_envs import PASSIVE_CHECK_IGNORE_WARNING
  from tests.envs.utils import all_testing_env_specs
  from tests.envs.utils_envs import ArgumentEnv, RegisterDuringMakeEnv
  from tests.testing_env import GenericTestEnv, old_step_fn
  from tests.wrappers.utils import has_wrapper
label_desc: Use image node_id 8 for calling a global function with example usage: test_make_order_enforcing() without return types