code: def test_step_compatibility_in_make(apply_api_compatibility):
      gym.register("OldStepEnv-v0", entry_point=OldStepEnv)
  
      if apply_api_compatibility is not None:
          env = gym.make(
              "OldStepEnv-v0",
              apply_api_compatibility=apply_api_compatibility,
              disable_env_checker=True,
          )
      else:
          env = gym.make("OldStepEnv-v0", disable_env_checker=True)
  
      env.reset()
      step_returns = env.step(0)
      if apply_api_compatibility:
          assert len(step_returns) == 5
          _, _, terminated, truncated, _ = step_returns
          assert isinstance(terminated, bool)
          assert isinstance(truncated, bool)
      else:
          assert len(step_returns) == 4
          _, _, done, _ = step_returns
          assert isinstance(done, bool)
  
      gym.envs.registry.pop("OldStepEnv-v0")
  
file_path: gym/tests/wrappers/test_step_compatibility.py
imports: import pytest
  import gym
  from gym.spaces import Discrete
  from gym.wrappers import StepAPICompatibility
label_desc: Use image node_id 3 for calling a global function with example usage: test_step_compatibility_in_make(apply_api_compatibility) without return types