code: def test_step_compatibility_to_new_api(env, output_truncation_bool):
      if output_truncation_bool is None:
          env = StepAPICompatibility(env())
      else:
          env = StepAPICompatibility(env(), output_truncation_bool)
      step_returns = env.step(0)
      _, _, terminated, truncated, _ = step_returns
      assert isinstance(terminated, bool)
      assert isinstance(truncated, bool)
  
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 1 for calling a global function with example usage: test_step_compatibility_to_new_api(env, output_truncation_bool) without return types