code: def test_time_limit_env():
      """Test BulletEnv emits done signal when time limit expiration occurs.
  
      After setting max_episode_steps=50, info['GymEnv.TimeLimitTerminated']
      is expected to be True after 50 steps.
  
      """
      env = BulletEnv("MinitaurBulletEnv-v0")
      env._env._max_episode_steps = 50
      env.reset()
      for _ in range(50):
          es = env.step(env.spec.action_space.sample())
      assert not es.terminal and es.env_info["TimeLimit.truncated"]
      assert es.env_info["GymEnv.TimeLimitTerminated"]
  
file_path: garage/tests/garage/envs/bullet/test_bullet_env.py
imports: import pickle
  import pybullet_envs
  from pybullet_utils.bullet_client import BulletClient
  import pytest
  from garage.envs.bullet import BulletEnv
  from tests.helpers import step_env
label_desc: Use image node_id 4 for calling a global function with example usage: test_time_limit_env() without return types