code: def test_can_step(env_ids):
      """Test Bullet environments can step"""
  
      for env_id in env_ids:
          # extract id string
          env_id = env_id.replace("- ", "")
          if env_id in (
              "KukaCamBulletEnv-v0",
              "KukaDiverseObjectGrasping-v0",
          ):
              # Kuka environments calls pybullet.resetSimulation() in reset()
              # unconditionally, which globally resets other simulations. So
              # only one Kuka environment is tested.
              continue
          env = BulletEnv(env_id)
          ob_space = env.observation_space
          act_space = env.action_space
          env.reset()
  
          ob = ob_space.sample()
          assert ob_space.contains(ob)
          a = act_space.sample()
          assert act_space.contains(a)
          # Skip rendering because it causes TravisCI to run out of memory
          step_env(env, visualize=False)
          env.close()
  
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 1 for calling a global function with example usage: test_can_step(env_ids) without return types