code: def test_stack_frames_invalid_environment_type(self):
      with pytest.raises(ValueError):
          self.env.observation_space = gym.spaces.Discrete(64)
          StackFrames(self.env, n_frames=4)
  
file_path: garage/tests/garage/envs/wrappers/test_stack_frames_env.py
imports: import gym.spaces
  import numpy
  import pytest
  from garage.envs.wrappers import StackFrames
  from tests.fixtures.envs.dummy import DummyDiscrete2DEnv
label_desc: Use image node_id 3 for calling the TestStackFrames obj's underlying member method code with example usage: obj.test_stack_frames_invalid_environment_type() without return types