code: def test_all_gym_envs_pickleable(self, spec):
      if spec._env_name.startswith("Defender"):
          pytest.skip(
              "Defender-* envs bundled in atari-py 0.2.x don't load"
          )
      if "Kuka" in spec.id:
          # Kuka environments calls py_bullet.resetSimulation() in reset()
          # unconditionally, which globally resets other simulations. So
          # only one Kuka environment can be tested.
          pytest.skip("Skip Kuka Bullet environments")
      elif "Minitaur" in spec.id:
          pytest.skip("Bulle Minitaur envs don't load")
      env = GymEnv(spec.id)
      round_trip = pickle.loads(pickle.dumps(env))
      assert round_trip
  
imports: import pickle
  import gym
  import pytest
  from garage.envs import GymEnv
  from tests.helpers import step_env_with_gym_quirks
label_desc: Use image node_id 2 for calling the TestGymEnv obj's underlying member method code with example usage: obj.test_all_gym_envs_pickleable(spec) without return types